[Python-checkins] CVS: python/dist/src/Lib/test test_mutants.py,1.3.2.1,1.3.2.2
Thomas Wouters
twouters@users.sourceforge.net
Wed, 23 May 2001 07:55:56 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv26969
Modified Files:
Tag: release21-maint
test_mutants.py
Log Message:
Now that the backporting of test_mutants.py worked successfully (Barnevelder
chickens work best!) adapt test_mutants to the absense of 'key in dict'.
Index: test_mutants.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_mutants.py,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -C2 -r1.3.2.1 -r1.3.2.2
*** test_mutants.py 2001/05/23 14:52:45 1.3.2.1
--- test_mutants.py 2001/05/23 14:55:54 1.3.2.2
***************
*** 61,65 ****
while 1:
newkey = Horrid(random.randrange(100))
! if newkey not in target:
break
target[newkey] = Horrid(random.randrange(100))
--- 61,65 ----
while 1:
newkey = Horrid(random.randrange(100))
! if not target.has_key(newkey):
break
target[newkey] = Horrid(random.randrange(100))