We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab69ed7 commit 157056eCopy full SHA for 157056e
4 files changed
tests/run-tests
@@ -365,15 +365,15 @@ def main():
365
if args.test_dirs is None:
366
if args.target == 'pyboard':
367
# run pyboard tests
368
- test_dirs = ('basics', 'micropython', 'float', 'misc', 'extmod', 'pyb', 'pybnative', 'inlineasm')
+ test_dirs = ('basics', 'micropython', 'float', 'misc', 'stress', 'extmod', 'pyb', 'pybnative', 'inlineasm')
369
elif args.target == 'esp8266':
370
test_dirs = ('basics', 'micropython', 'float', 'misc', 'extmod')
371
elif args.target == 'wipy':
372
# run WiPy tests
373
test_dirs = ('basics', 'micropython', 'misc', 'extmod', 'wipy')
374
else:
375
# run PC tests
376
- test_dirs = ('basics', 'micropython', 'float', 'import', 'io', 'misc', 'unicode', 'extmod', 'unix', 'cmdline')
+ test_dirs = ('basics', 'micropython', 'float', 'import', 'io', 'misc', 'stress', 'unicode', 'extmod', 'unix', 'cmdline')
377
378
# run tests from these directories
379
test_dirs = args.test_dirs
tests/stress/dict_copy.py
@@ -0,0 +1,7 @@
1
+# copying a large dictionary
2
+
3
+a = {i:2*i for i in range(1000)}
4
+b = a.copy()
5
+for i in range(1000):
6
+ print(i, b[i])
7
+print(len(b))
tests/stress/dict_create.py
@@ -0,0 +1,8 @@
+# create a large dictionary
+d = {}
+x = 1
+while x < 1000:
+ d[x] = x
+ x += 1
8
+print(d[500])
tests/stress/list_sort.py
@@ -0,0 +1,6 @@
+# test large list sorting (should not stack overflow)
+l = list(range(2000))
+l.sort()
+print(l[0], l[-1])
+l.sort(reverse=True)
0 commit comments