From 2b5a1067c0664836ad8737832754f0866f549fd1 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 9 Jul 2016 16:52:57 +0100 Subject: [PATCH] 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. --- tests/run-tests | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/run-tests b/tests/run-tests index 649f1789fa..02791896b5 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -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