[Python-checkins] python/dist/src/Lib/test test_itertools.py, 1.30, 1.31

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Sun Jul 18 19:34:06 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25183/Lib/test

Modified Files:
	test_itertools.py 
Log Message:
test_sf_950057's gen1() used an assert statement, which caused the test
to fail when running with -O.  Changed to raise AssertionError instead.


Index: test_itertools.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_itertools.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** test_itertools.py	8 May 2004 19:49:42 -0000	1.30
--- test_itertools.py	18 Jul 2004 17:34:03 -0000	1.31
***************
*** 653,657 ****
              yield 1
              hist.append(1)
!             assert False
              hist.append(2)
  
--- 653,657 ----
              yield 1
              hist.append(1)
!             raise AssertionError
              hist.append(2)
  



More information about the Python-checkins mailing list