[Python-checkins] python/dist/src/Lib/test test_types.py,1.37,1.38

mwh@users.sourceforge.net mwh@users.sourceforge.net
Tue, 05 Nov 2002 09:38:07 -0800


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

Modified Files:
	test_types.py 
Log Message:
This is Alex Martelli's patch 

[ 633870 ] allow any seq assignment to a list slice

plus a very silly little test case of my own.



Index: test_types.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_types.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -d -r1.37 -r1.38
*** test_types.py	29 Jul 2002 14:35:03 -0000	1.37
--- test_types.py	5 Nov 2002 17:38:05 -0000	1.38
***************
*** 298,301 ****
--- 298,305 ----
      raise TestFailed, "list inplace repeat"
  
+ a = []
+ a[:] = tuple(range(10))
+ if a != range(10):
+     raise TestFailed, "assigning tuple to slice"
  
  print '6.5.3a Additional list operations'