Files
micropython/tests/basics/io_stringio_with.py
Damien George 54e6cfc6e3 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>
2025-08-15 00:23:16 +10:00

11 lines
173 B
Python

try:
import io
except ImportError:
print("SKIP")
raise SystemExit
# test __enter__/__exit__
with io.StringIO() as b:
b.write("foo")
print(b.getvalue())