mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 11:40:18 +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,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")
|
||||
|
||||
Reference in New Issue
Block a user