summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-07-09 16:52:57 +0100
committerDamien George <damien.p.george@gmail.com>2016-07-09 16:52:57 +0100
commit2b5a1067c0664836ad8737832754f0866f549fd1 (patch)
tree16da7033c945d27fbe6889f6afdc2747a58c4915 /tests
parent3096928d5ab6544c3f85639e1b97ac2cefcc2a74 (diff)
downloadmicropython-2b5a1067c0664836ad8737832754f0866f549fd1.tar.gz
micropython-2b5a1067c0664836ad8737832754f0866f549fd1.zip
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.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run-tests7
1 files changed, 7 insertions, 0 deletions
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