summaryrefslogtreecommitdiff
path: root/tests/io/file_stdio.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/io/file_stdio.py')
-rw-r--r--tests/io/file_stdio.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/io/file_stdio.py b/tests/io/file_stdio.py
index cbdb07016..6c08f35d7 100644
--- a/tests/io/file_stdio.py
+++ b/tests/io/file_stdio.py
@@ -1,4 +1,7 @@
-import sys
+try:
+ import usys as sys
+except ImportError:
+ import sys
print(sys.stdin.fileno())
print(sys.stdout.fileno())