From 44c69c91e1bc30dc31d89208208fc559cc528f9d Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Wed, 23 May 2001 14:55:54 +0000 Subject: [PATCH] Now that the backporting of test_mutants.py worked successfully (Barnevelder chickens work best!) adapt test_mutants to the absense of 'key in dict'. --- Lib/test/test_mutants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3