Skip to content

Commit 75a811a

Browse files
committed
tests: Move int+unicode test to unicode-specific test directory.
1 parent 2b00047 commit 75a811a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

tests/basics/int1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def test(value, base):
6767
test('', 0)
6868
test(' ', 0)
6969
test(' \t\t ', 0)
70-
test("\u0200", 0)
7170
test('0x', 16)
7271
test('0x', 0)
7372
test('0o', 8)

tests/unicode/unicode.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,9 @@
2626
eval('"\\U00110000"')
2727
except SyntaxError:
2828
print('SyntaxError')
29+
30+
# test unicode string given to int
31+
try:
32+
int('\u0200')
33+
except ValueError:
34+
print('ValueError')

0 commit comments

Comments
 (0)