Skip to content

Commit f684e9e

Browse files
committed
tests/basics/int_big1.py: Add test converting str with non-print chars.
1 parent 430efb0 commit f684e9e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/basics/int_big1.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@
7575
print(int("123456789012345678901234567890abcdef"))
7676
except ValueError:
7777
print('ValueError');
78+
try:
79+
print(int("123456789012345678901234567890\x01"))
80+
except ValueError:
81+
print('ValueError');
7882

7983
# test constant integer with more than 255 chars
8084
x = 0x84ce72aa8699df436059f052ac51b6398d2511e49631bcb7e71f89c499b9ee425dfbc13a5f6d408471b054f2655617cbbaf7937b7c80cd8865cf02c8487d30d2b0fbd8b2c4e102e16d828374bbc47b93852f212d5043c3ea720f086178ff798cc4f63f787b9c2e419efa033e7644ea7936f54462dc21a6c4580725f7f0e7d1aaaaaaa

0 commit comments

Comments
 (0)