From 8f8f8539827a4d38dd51e4960fe54a0ed8ab08ea Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 8 Jul 2025 00:45:13 +1000 Subject: [PATCH] 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 --- tests/run-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run-tests.py b/tests/run-tests.py index faf1d2e3b..0eaee5278 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -886,7 +886,7 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1): is_bytearray = test_name.startswith("bytearray") or test_name.endswith("_bytearray") is_set_type = test_name.startswith(("set_", "frozenset")) or test_name.endswith("_set") is_slice = test_name.find("slice") != -1 or test_name in misc_slice_tests - is_async = test_name.startswith(("async_", "asyncio_")) + is_async = test_name.startswith(("async_", "asyncio_")) or test_name.endswith("_async") is_const = test_name.startswith("const") is_io_module = test_name.startswith("io_") is_fstring = test_name.startswith("string_fstring")