mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Deviant1 didn't work as advertised
This commit is contained in:
parent
37b1a26c89
commit
7c4f96f442
1 changed files with 4 additions and 4 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue