diff options
author | Damien George <damien.p.george@gmail.com> | 2019-10-29 22:01:17 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-10-29 22:22:37 +1100 |
commit | 52299ed3f011b50feb58c226764e08a995fad305 (patch) | |
tree | 594309f40b7c32c2b821166532f1a7143a3c2e02 | |
parent | b5186c9271d85c1105309ad4bf8c7d68b0d8efa7 (diff) |
tests/run-tests: Add misc list of tests that use slice, to skip them.
-rwxr-xr-x | tests/run-tests | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/run-tests b/tests/run-tests index 0fb72f3f6..5a2086c5a 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -288,6 +288,22 @@ def run_tests(pyb, tests, args, base_path="."): cpy_byteorder = subprocess.check_output([CPYTHON3, base_path + '/feature_check/byteorder.py']) skip_endian = (upy_byteorder != cpy_byteorder) + # These tests don't test slice explicitly but rather use it to perform the test + misc_slice_tests = ( + 'builtin_range', + 'class_super', + 'containment', + 'errno1', + 'fun_str', + 'generator1', + 'globals_del', + 'memoryview1', + 'memoryview_gc', + 'object1', + 'python34', + 'struct_endian', + ) + # Some tests shouldn't be run under Travis CI if os.getenv('TRAVIS') == 'true': skip_tests.add('basics/memoryerror.py') @@ -411,7 +427,7 @@ def run_tests(pyb, tests, args, base_path="."): is_int_big = test_name.startswith("int_big") or test_name.endswith("_intbig") is_bytearray = test_name.startswith("bytearray") or test_name.endswith("_bytearray") is_set_type = test_name.startswith("set_") or test_name.startswith("frozenset") - is_slice = test_name.find("slice") != -1 + is_slice = test_name.find("slice") != -1 or test_name in misc_slice_tests is_async = test_name.startswith("async_") is_const = test_name.startswith("const") |