diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-12-06 14:56:37 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-12-06 14:57:31 +0200 |
commit | eed2f36ae2782f169841b61d5314c4d7eb0a5f09 (patch) | |
tree | 396174c766101ccea785eafdf5d6d4e7000a985a /tests | |
parent | 082b12128d935eaf7ac49560c90734def1d0b232 (diff) | |
download | micropython-eed2f36ae2782f169841b61d5314c4d7eb0a5f09.tar.gz micropython-eed2f36ae2782f169841b61d5314c4d7eb0a5f09.zip |
tests/run-tests: Allow to skip complex tests if it's not compiled in.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/run-tests | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run-tests b/tests/run-tests index 7340d5f550..e30ef104f9 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -182,6 +182,7 @@ def run_tests(pyb, tests, args): skip_tests.add('cmdline/cmd_showbc.py') upy_byteorder = run_micropython(pyb, args, 'feature_check/byteorder.py') + has_complex = run_micropython(pyb, args, 'feature_check/complex.py') == b'complex\n' cpy_byteorder = subprocess.check_output([CPYTHON3, 'feature_check/byteorder.py']) skip_endian = (upy_byteorder != cpy_byteorder) @@ -189,6 +190,12 @@ def run_tests(pyb, tests, args): if os.getenv('TRAVIS') == 'true': skip_tests.add('basics/memoryerror.py') + if not has_complex: + skip_tests.add('float/complex1.py') + skip_tests.add('float/int_big_float.py') + skip_tests.add('float/true_value.py') + skip_tests.add('float/types.py') + # Some tests shouldn't be run on pyboard if pyb is not None: skip_tests.add('basics/exception_chain.py') # warning is not printed |