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.
pull/2229/head^2
Damien George 2016-07-09 16:52:57 +01:00
rodzic 3096928d5a
commit 2b5a1067c0
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -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