From: Thomas Wouters Date: Wed, 23 May 2001 14:55:54 +0000 (+0000) Subject: Now that the backporting of test_mutants.py worked successfully (Barnevelder X-Git-Tag: v2.1.1c1~104 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=44c69c91e1bc30dc31d89208208fc559cc528f9d;p=thirdparty%2FPython%2Fcpython.git Now that the backporting of test_mutants.py worked successfully (Barnevelder chickens work best!) adapt test_mutants to the absense of 'key in dict'. --- diff --git a/Lib/test/test_mutants.py b/Lib/test/test_mutants.py index 3cd35d17a5ff..8b1f47542683 100644 --- a/Lib/test/test_mutants.py +++ b/Lib/test/test_mutants.py @@ -60,7 +60,7 @@ def maybe_mutate(): mutate = 0 # disable mutation until key inserted while 1: newkey = Horrid(random.randrange(100)) - if newkey not in target: + if not target.has_key(newkey): break target[newkey] = Horrid(random.randrange(100)) keys.append(newkey)