summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/stress/qstr_limit.py12
-rw-r--r--tests/stress/qstr_limit.py.exp10
2 files changed, 10 insertions, 12 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:
diff --git a/tests/stress/qstr_limit.py.exp b/tests/stress/qstr_limit.py.exp
index 516c9d7f6..455761bc7 100644
--- a/tests/stress/qstr_limit.py.exp
+++ b/tests/stress/qstr_limit.py.exp
@@ -31,13 +31,13 @@ RuntimeError 258
RuntimeError 256
RuntimeError 257
RuntimeError 258
-ok 150
-ok 151
+ok 100
+ok 101
RuntimeError 256
RuntimeError 257
RuntimeError 258
-ok 125
-ok 126
-ok 127
+ok 100
+ok 101
+ok 102
RuntimeError 128
RuntimeError 129