Skip to content

Commit 8f8f853

Browse files
committed
tests/run-tests.py: Consider tests ending in _async.py as async tests.
The test `micropython/ringio_async.py` is a test that requires async keyword support, and will fail with SyntaxError on targets that don't support async/await. Really it should be skipped on such targets, and this commit makes sure that's the case. Signed-off-by: Damien George <damien@micropython.org>
1 parent 125d19c commit 8f8f853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/run-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ def run_one_test(test_file):
886886
is_bytearray = test_name.startswith("bytearray") or test_name.endswith("_bytearray")
887887
is_set_type = test_name.startswith(("set_", "frozenset")) or test_name.endswith("_set")
888888
is_slice = test_name.find("slice") != -1 or test_name in misc_slice_tests
889-
is_async = test_name.startswith(("async_", "asyncio_"))
889+
is_async = test_name.startswith(("async_", "asyncio_")) or test_name.endswith("_async")
890890
is_const = test_name.startswith("const")
891891
is_io_module = test_name.startswith("io_")
892892
is_fstring = test_name.startswith("string_fstring")

0 commit comments

Comments
 (0)