tests/basics: Skip tests of io module individually using SKIP.

Instead of using a feature check.  This is more consistent with how other
optional modules are skipped.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2025-08-11 11:45:55 +10:00
parent e2744ce679
commit 54e6cfc6e3
12 changed files with 47 additions and 28 deletions

View File

@@ -1,7 +1,11 @@
# Checks that an instance type inheriting from a native base that uses
# MP_TYPE_FLAG_ITER_IS_STREAM will still have a getiter.
import io
try:
import io
except ImportError:
print("SKIP")
raise SystemExit
a = io.StringIO()
a.write("hello\nworld\nmicro\npython\n")