diff options
author | Guido van Rossum <guido@python.org> | 2007-02-11 22:59:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-11 22:59:48 (GMT) |
commit | 07f2436fa864c5a09150c8f0b250640f267f01bf (patch) | |
tree | 5877df7e61bbd4d641ff32346284aad239cebc0c /Lib/test/test_weakref.py | |
parent | 9afbb4e364e087a097610e9da47362518020cc2a (diff) | |
download | cpython-07f2436fa864c5a09150c8f0b250640f267f01bf.zip cpython-07f2436fa864c5a09150c8f0b250640f267f01bf.tar.gz cpython-07f2436fa864c5a09150c8f0b250640f267f01bf.tar.bz2 |
Nailed test_weakref.py. Pfew, messy!
Diffstat (limited to 'Lib/test/test_weakref.py')
-rw-r--r-- | Lib/test/test_weakref.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_weakref.py b/Lib/test/test_weakref.py index 1213b57..642af10 100644 --- a/Lib/test/test_weakref.py +++ b/Lib/test/test_weakref.py @@ -844,19 +844,19 @@ class MappingTestCase(TestBase): self.assert_(len(items) == 0, "iteritems() did not touch all items") # key iterator, via __iter__(): - keys = dict.keys() + keys = list(dict.keys()) for k in dict: keys.remove(k) self.assert_(len(keys) == 0, "__iter__() did not touch all keys") # key iterator, via iterkeys(): - keys = dict.keys() + keys = list(dict.keys()) for k in dict.keys(): keys.remove(k) self.assert_(len(keys) == 0, "iterkeys() did not touch all keys") # value iterator: - values = dict.values() + values = list(dict.values()) for v in dict.values(): values.remove(v) self.assert_(len(values) == 0, |