Files
micropython/tests/stress/dict_create.py
Damien George 6565827955 tests/run-tests.py: Always include stress/ tests directory in tests.
Ports that now run the stress tests, that didn't prior to this commit are:
cc3200, esp8266, minimal, nrf, renesas-ra, samd, qemu, webassembly.

Signed-off-by: Damien George <damien@micropython.org>
2025-08-15 00:23:16 +10:00

13 lines
180 B
Python

# create a large dictionary
d = {}
x = 1
while x < 1000:
try:
d[x] = x
except MemoryError:
print("SKIP")
raise SystemExit
x += 1
print(d[500])