summaryrefslogtreecommitdiff
path: root/tests/basics/string_compare.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/string_compare.py')
-rw-r--r--tests/basics/string_compare.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/basics/string_compare.py b/tests/basics/string_compare.py
index 6515809b3..f34879df2 100644
--- a/tests/basics/string_compare.py
+++ b/tests/basics/string_compare.py
@@ -51,7 +51,10 @@ print("1/" <= "1")
# this tests an internal string that doesn't have a hash with a string
# that does have a hash, but the lengths of the two strings are different
-import sys
+try:
+ import usys as sys
+except ImportError:
+ import sys
print(sys.version == 'a long string that has a hash')
# this special string would have a hash of 0 but is incremented to 1