mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #7788: Fix a crash produced by deleting a list slice with huge
step value. Patch by Marcin Bachry.
This commit is contained in:
parent
b5d7400e8a
commit
36ecd676ea
7 changed files with 17 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue