Files
micropython/tests/stress/dict_copy.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
203 B
Python

# copying a large dictionary
try:
a = {i: 2 * i for i in range(1000)}
except MemoryError:
print("SKIP")
raise SystemExit
b = a.copy()
for i in range(1000):
print(i, b[i])
print(len(b))