[Python-checkins] python/dist/src/Lib/test test_types.py,1.36,1.37 test_array.py,1.17,1.18

mwh@users.sourceforge.net mwh@users.sourceforge.net
Mon, 29 Jul 2002 07:35:06 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv18102/Lib/test

Modified Files:
	test_types.py test_array.py 
Log Message:
Fix for

[ 587875 ] crash on deleting extended slice

The array code got simpler, always a good thing!


Index: test_types.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_types.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** test_types.py	23 Jul 2002 19:04:08 -0000	1.36
--- test_types.py	29 Jul 2002 14:35:03 -0000	1.37
***************
*** 406,409 ****
--- 406,412 ----
  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)

Index: test_array.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_array.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** test_array.py	23 Jul 2002 19:03:43 -0000	1.17
--- test_array.py	29 Jul 2002 14:35:04 -0000	1.18
***************
*** 337,340 ****
--- 337,343 ----
          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))