Skip to content
Snippets Groups Projects
Commit 2b5a1067 authored by Damien George's avatar Damien George
Browse files

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.
parent 3096928d
No related branches found
No related tags found
No related merge requests found
...@@ -201,6 +201,13 @@ def run_tests(pyb, tests, args): ...@@ -201,6 +201,13 @@ def run_tests(pyb, tests, args):
skip_tests.add('float/true_value.py') skip_tests.add('float/true_value.py')
skip_tests.add('float/types.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 # Some tests shouldn't be run on pyboard
if pyb is not None: if pyb is not None:
skip_tests.add('basics/exception_chain.py') # warning is not printed skip_tests.add('basics/exception_chain.py') # warning is not printed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment