[Python-checkins] python/dist/src/Lib/test test_array.py,1.18,1.19

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Mon, 06 Jan 2003 17:59:28 -0800


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

Modified Files:
	test_array.py 
Log Message:
SF patch #662433: Fill arraymodule's tp_iter and sq_contains slots



Index: test_array.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_array.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** test_array.py	29 Jul 2002 14:35:04 -0000	1.18
--- test_array.py	7 Jan 2003 01:58:52 -0000	1.19
***************
*** 357,360 ****
--- 357,366 ----
          b[slice(2,3)] = ins
          c[2:3:] = ins
+         # iteration and contains
+         a = array.array(type, range(10))
+         vereq(list(a), range(10))
+         b = array.array(type, [20])
+         vereq(a[-1] in a, True)
+         vereq(b[0] not in a, True)
  
      # test that overflow exceptions are raised as expected for assignment