summaryrefslogtreecommitdiff
path: root/tests/stress/qstr_limit.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-12-13 14:49:16 +1100
committerDamien George <damien.p.george@gmail.com>2019-12-13 15:58:28 +1100
commit33b0a7e6019a7058d2eab3c9623096d4b6f7f6b7 (patch)
tree017f6e91c242764cddb2840b7f82c28b352bd52c /tests/stress/qstr_limit.py
parent71c6bfd08a91c942decbfd659cafd2773afb00b4 (diff)
tests/stress/qstr_limit: Tune params to run with stm32 port.
Because MICROPY_ALLOC_PATH_MAX is only 128 for this port.
Diffstat (limited to 'tests/stress/qstr_limit.py')
-rw-r--r--tests/stress/qstr_limit.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/stress/qstr_limit.py b/tests/stress/qstr_limit.py
index 90c85dae9..889ab7e51 100644
--- a/tests/stress/qstr_limit.py
+++ b/tests/stress/qstr_limit.py
@@ -64,19 +64,17 @@ for l in range(254, 259):
print('RuntimeError', l)
# import module
-# (different OS's have different results so only print those that are consistent)
-for l in range(150, 259):
+# (different OS's have different results so only run those that are consistent)
+for l in (100, 101, 256, 257, 258):
try:
__import__(make_id(l))
except ImportError:
- if l < 152:
- print('ok', l)
+ print('ok', l)
except RuntimeError:
- if l > 255:
- print('RuntimeError', l)
+ print('RuntimeError', l)
# import package
-for l in range(125, 130):
+for l in (100, 101, 102, 128, 129):
try:
exec('import ' + make_id(l) + '.' + make_id(l, 'A'))
except ImportError: