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_bytesio_ext.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_bytesio_ext.py')
| -rw-r--r-- | tests/basics/io_bytesio_ext.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/basics/io_bytesio_ext.py b/tests/basics/io_bytesio_ext.py index 4d4c60c13..92e715178 100644 --- a/tests/basics/io_bytesio_ext.py +++ b/tests/basics/io_bytesio_ext.py @@ -1,5 +1,11 @@ # Extended stream operations on io.BytesIO -import io + +try: + import io +except ImportError: + print("SKIP") + raise SystemExit + a = io.BytesIO(b"foobar") a.seek(10) print(a.read(10)) |
