Issue #7788: Fix a crash produced by deleting a list slice with huge

step value.  Patch by Marcin Bachry.
This commit is contained in:
Mark Dickinson 2010-01-29 17:11:39 +00:00
parent b5d7400e8a
commit 36ecd676ea
7 changed files with 17 additions and 5 deletions

View file

@ -519,6 +519,9 @@ class CommonTest(seq_tests.CommonTest):
a = self.type2test(range(10))
a[::2] = tuple(range(5))
self.assertEqual(a, self.type2test([0, 1, 1, 3, 2, 5, 3, 7, 4, 9]))
# test issue7788
a = self.type2test(range(10))
del a[9::1<<333]
def test_constructor_exception_handling(self):
# Bug #1242657