diff options
| author | Damien George <damien@micropython.org> | 2025-08-11 11:45:55 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-08-15 00:23:16 +1000 |
| commit | 54e6cfc6e3f3c2056bf2f06d32a58932d29f1ac3 (patch) | |
| tree | 6bff1e7ddf87064066fbf95791e3cb59a68560e0 /tests/basics/io_stringio_base.py | |
| parent | e2744ce679269692ceed2bed1e6f4f6a7840b49b (diff) | |
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>
Diffstat (limited to 'tests/basics/io_stringio_base.py')
| -rw-r--r-- | tests/basics/io_stringio_base.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/basics/io_stringio_base.py b/tests/basics/io_stringio_base.py index 0f65fb3fa..c8890dab7 100644 --- a/tests/basics/io_stringio_base.py +++ b/tests/basics/io_stringio_base.py @@ -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") |
