diff options
Diffstat (limited to 'tests/io/stringio_with.py')
-rw-r--r-- | tests/io/stringio_with.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/io/stringio_with.py b/tests/io/stringio_with.py index 6dc48c8932..c35975445d 100644 --- a/tests/io/stringio_with.py +++ b/tests/io/stringio_with.py @@ -1,4 +1,7 @@ -import uio as io +try: + import uio as io +except ImportError: + import io # test __enter__/__exit__ with io.StringIO() as b: |