summaryrefslogtreecommitdiff
path: root/tests/basics/io_bytesio_ext.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/io_bytesio_ext.py')
-rw-r--r--tests/basics/io_bytesio_ext.py8
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))