tests/run-tests: Skip uasyncio if no async, and skip one test on native.

pull/5332/head
Damien George 2020-01-23 17:57:46 +11:00
rodzic c4935f3049
commit 5d09a40df9
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -413,6 +413,7 @@ def run_tests(pyb, tests, args, base_path="."):
skip_tests.add('basics/scope_implicit.py') # requires checking for unbound local
skip_tests.add('basics/try_finally_return2.py') # requires raise_varargs
skip_tests.add('basics/unboundlocal.py') # requires checking for unbound local
skip_tests.add('extmod/uasyncio_lock.py') # requires async with
skip_tests.add('misc/features.py') # requires raise_varargs
skip_tests.add('misc/print_exception.py') # because native doesn't have proper traceback info
skip_tests.add('misc/sys_exc_info.py') # sys.exc_info() is not supported for native
@ -441,7 +442,7 @@ def run_tests(pyb, tests, args, base_path="."):
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 or test_name in misc_slice_tests
is_async = test_name.startswith("async_")
is_async = test_name.startswith(("async_", "uasyncio_"))
is_const = test_name.startswith("const")
is_io_module = test_name.startswith("io_")