Skip to content

Commit eecebef

Browse files
committed
Add test
1 parent 9a717a3 commit eecebef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extra_tests/snippets/builtin_slice.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from testutils import assert_raises
2+
import sys
23

34
a = []
45
assert a[:] == []
@@ -129,3 +130,5 @@ def test_all_slices():
129130

130131

131132
test_all_slices()
133+
134+
assert_raises(IndexError, lambda: b[::0], _msg='bytearray index out of range')

0 commit comments

Comments
 (0)