mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 13:10:21 +01:00
tests: Adapt basics/memoryerror.py for ports with lower heap sizes.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
l = list(range(10000))
|
||||
l = list(range(1000))
|
||||
try:
|
||||
100000000 * l
|
||||
1000000000 * l
|
||||
except MemoryError:
|
||||
print('MemoryError')
|
||||
print(len(l), l[0], l[-1])
|
||||
|
||||
Reference in New Issue
Block a user