From 54e6cfc6e3f3c2056bf2f06d32a58932d29f1ac3 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 11 Aug 2025 11:45:55 +1000 Subject: 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 --- tests/basics/io_bytesio_ext.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/basics/io_bytesio_ext.py') 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)) -- cgit v1.2.3