diff options
| author | Damien George | 2018-04-04 13:56:00 +1000 |
|---|---|---|
| committer | Damien George | 2018-04-04 13:56:00 +1000 |
| commit | f684e9e1ab23cb04b0572745e9fe1c9dbfa0f126 (patch) | |
| tree | 74d2a7c604c26ca874de5d14a9b4e709949459f0 /tests | |
| parent | 430efb044400ae191edc0d1a1654b875284313a7 (diff) | |
tests/basics/int_big1.py: Add test converting str with non-print chars.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/basics/int_big1.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/int_big1.py b/tests/basics/int_big1.py index 425bc21b6..4bf44eb18 100644 --- a/tests/basics/int_big1.py +++ b/tests/basics/int_big1.py @@ -75,6 +75,10 @@ try: print(int("123456789012345678901234567890abcdef")) except ValueError: print('ValueError'); +try: + print(int("123456789012345678901234567890\x01")) +except ValueError: + print('ValueError'); # test constant integer with more than 255 chars x = 0x84ce72aa8699df436059f052ac51b6398d2511e49631bcb7e71f89c499b9ee425dfbc13a5f6d408471b054f2655617cbbaf7937b7c80cd8865cf02c8487d30d2b0fbd8b2c4e102e16d828374bbc47b93852f212d5043c3ea720f086178ff798cc4f63f787b9c2e419efa033e7644ea7936f54462dc21a6c4580725f7f0e7d1aaaaaaa |
