summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-07-08 00:45:13 +1000
committerDamien George <damien@micropython.org>2025-07-12 23:48:17 +1000
commit8f8f8539827a4d38dd51e4960fe54a0ed8ab08ea (patch)
tree195361a2d6b15b6791f865643afff24d63654a9f
parent125d19ce7be05c91be332ba088cc38ada8020b2f (diff)
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>
-rwxr-xr-xtests/run-tests.py2
1 files changed, 1 insertions, 1 deletions
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")