From: Jeremy Hylton Date: Thu, 27 Apr 2000 21:42:48 +0000 (+0000) Subject: Deviant1 didn't work as advertised X-Git-Tag: v2.0b1~1914 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c4f96f44281d652fda7069397dced4f6af6353d;p=thirdparty%2FPython%2Fcpython.git Deviant1 didn't work as advertised --- diff --git a/Lib/test/test_contains.py b/Lib/test/test_contains.py index 715fbbf09cc5..355135f01d58 100644 --- a/Lib/test/test_contains.py +++ b/Lib/test/test_contains.py @@ -140,13 +140,13 @@ class Deviant1: works when the list is modified during the check. """ - aLongList = range(15) - aShortList = range(5) - aList = aLongList + aList = range(15) def __cmp__(self, other): if other == 12: - self.aList = self.aShortList + self.aList.remove(12) + self.aList.remove(13) + self.aList.remove(14) return 1 check(Deviant1() not in Deviant1.aList, "Deviant1 failed")