From 75a811a6df51392868ba35e9e341d882b842b066 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 7 Sep 2015 21:36:24 +0100 Subject: [PATCH] tests: Move int+unicode test to unicode-specific test directory. --- tests/basics/int1.py | 1 - tests/unicode/unicode.py | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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')