tests/run-tests: If running thread tests on unix, don't run mutate ones.
They will fail because the GIL is disabled on the unix build.
This commit is contained in:
parent
3096928d5a
commit
2b5a1067c0
|
@ -201,6 +201,13 @@ def run_tests(pyb, tests, args):
|
|||
skip_tests.add('float/true_value.py')
|
||||
skip_tests.add('float/types.py')
|
||||
|
||||
# Some tests shouldn't be run on a PC
|
||||
if pyb is None:
|
||||
# unix build does not have the GIL so can't run thread mutation tests
|
||||
for t in tests:
|
||||
if t.startswith('thread/mutate_'):
|
||||
skip_tests.add(t)
|
||||
|
||||
# Some tests shouldn't be run on pyboard
|
||||
if pyb is not None:
|
||||
skip_tests.add('basics/exception_chain.py') # warning is not printed
|
||||
|
|
Loading…
Reference in New Issue