summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2000-04-27 21:42:48 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2000-04-27 21:42:48 (GMT)
commit7c4f96f44281d652fda7069397dced4f6af6353d (patch)
treee39cb90b67179960400a42a51be394904ef2259f /Lib/test
parent37b1a26c89d5f2583f04ac4efb3d799ff07634f6 (diff)
downloadcpython-7c4f96f44281d652fda7069397dced4f6af6353d.zip
cpython-7c4f96f44281d652fda7069397dced4f6af6353d.tar.gz
cpython-7c4f96f44281d652fda7069397dced4f6af6353d.tar.bz2
Deviant1 didn't work as advertised
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_contains.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_contains.py b/Lib/test/test_contains.py
index 715fbbf..355135f 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")