diff options
| author | John R. Lenton <jlenton@gmail.com> | 2014-01-04 12:52:07 +0000 |
|---|---|---|
| committer | John R. Lenton <jlenton@gmail.com> | 2014-01-04 12:52:07 +0000 |
| commit | ff9a24f6f7c576e129685ce59cd9e0a87925cef8 (patch) | |
| tree | fa051b68b874fc29e3a449f19f672a55c3a06c0d /tests | |
| parent | a58cf679ee466b0bcd873603515a3ef293252b20 (diff) | |
| parent | 32f88410a153967af3f013d02a1a662aec19ec04 (diff) | |
Merge remote-tracking branch 'upstream/master' into list_count
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/basics/tests/slice-bstr1.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/tests/slice-bstr1.py b/tests/basics/tests/slice-bstr1.py index 0bed95914..74dbc2061 100644 --- a/tests/basics/tests/slice-bstr1.py +++ b/tests/basics/tests/slice-bstr1.py @@ -22,6 +22,11 @@ print(b"123"[0:]) print(b"123"[:0]) print(b"123"[:-3]) print(b"123"[:-4]) +# Range check testing, don't segfault, please ;-) +print(b"123"[:1000000]) +print(b"123"[1000000:]) +print(b"123"[:-1000000]) +print(b"123"[-1000000:]) # No IndexError! print(b""[1:1]) print(b""[-1:-1]) |
