summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/int1.py1
-rw-r--r--tests/unicode/unicode.py6
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/basics/int1.py b/tests/basics/int1.py
index a010a32e0a..aea72b7dd1 100644
--- a/tests/basics/int1.py
+++ b/tests/basics/int1.py
@@ -67,7 +67,6 @@ test(' 1' + chr(2) + ' ', 0)
test('', 0)
test(' ', 0)
test(' \t\t ', 0)
-test("\u0200", 0)
test('0x', 16)
test('0x', 0)
test('0o', 8)
diff --git a/tests/unicode/unicode.py b/tests/unicode/unicode.py
index 3ed74b7900..b31f064e9c 100644
--- a/tests/unicode/unicode.py
+++ b/tests/unicode/unicode.py
@@ -26,3 +26,9 @@ try:
eval('"\\U00110000"')
except SyntaxError:
print('SyntaxError')
+
+# test unicode string given to int
+try:
+ int('\u0200')
+except ValueError:
+ print('ValueError')