mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
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:
@@ -1,4 +1,9 @@
|
||||
import io
|
||||
try:
|
||||
import io
|
||||
except ImportError:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
a = io.StringIO()
|
||||
print('io.StringIO' in repr(a))
|
||||
print(a.getvalue())
|
||||
|
||||
Reference in New Issue
Block a user