summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-07-29 14:35:04 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-07-29 14:35:04 (GMT)
commit56796f672fb571d80199cf08aa059db9df55257b (patch)
tree36db817cd703a8c79f44d96f678ed6ba1e399d13 /Lib
parent085358a3e208b4825dafa829798cfc125f56a2e4 (diff)
downloadcpython-56796f672fb571d80199cf08aa059db9df55257b.zip
cpython-56796f672fb571d80199cf08aa059db9df55257b.tar.gz
cpython-56796f672fb571d80199cf08aa059db9df55257b.tar.bz2
Fix for
[ 587875 ] crash on deleting extended slice The array code got simpler, always a good thing!
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/test_array.py3
-rw-r--r--Lib/test/test_types.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
index 023af9a..b650033 100755
--- a/Lib/test/test_array.py
+++ b/Lib/test/test_array.py
@@ -336,6 +336,9 @@ def testtype(type, example):
a = array.array(type, range(5))
del a[1::-2]
vereq(a, array.array(type, [0,2,3,4]))
+ a = array.array(type, range(10))
+ del a[::1000]
+ vereq(a, array.array(type, [1,2,3,4,5,6,7,8,9]))
# assignment
a = array.array(type, range(10))
a[::2] = array.array(type, [-1]*5)
diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py
index 7efca21..a38eb7f 100644
--- a/Lib/test/test_types.py
+++ b/Lib/test/test_types.py
@@ -405,6 +405,9 @@ vereq(a, [0,2,4])
a = range(5)
del a[1::-2]
vereq(a, [0,2,3,4])
+a = range(10)
+del a[::1000]
+vereq(a, [1, 2, 3, 4, 5, 6, 7, 8, 9])
# assignment
a = range(10)
a[::2] = [-1]*5