From eecebef0e02e8cf3bbf8be6441d4307c024bc0cf Mon Sep 17 00:00:00 2001 From: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> Date: Wed, 30 Dec 2020 10:56:00 -0600 Subject: [PATCH] Add test --- extra_tests/snippets/builtin_slice.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extra_tests/snippets/builtin_slice.py b/extra_tests/snippets/builtin_slice.py index 6c2dd847b4..89ef5dba94 100644 --- a/extra_tests/snippets/builtin_slice.py +++ b/extra_tests/snippets/builtin_slice.py @@ -1,4 +1,5 @@ from testutils import assert_raises +import sys a = [] assert a[:] == [] @@ -129,3 +130,5 @@ def test_all_slices(): test_all_slices() + +assert_raises(IndexError, lambda: b[::0], _msg='bytearray index out of range') \ No newline at end of file