diff options
author | Guido van Rossum <guido@python.org> | 2007-02-11 22:59:48 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-11 22:59:48 +0000 |
commit | e0ae918fd865766f004316c55ddce4e23a1fb826 (patch) | |
tree | 506e50c8c6a8bd56a3fee0f41c29f27fcca5dc3a /Lib/test/test_weakref.py | |
parent | 9ebcf6a7ba3d75bf6185ff5af4bc2c901aa18876 (diff) | |
download | cpython-e0ae918fd865766f004316c55ddce4e23a1fb826.tar.gz |
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 1213b572a1..642af107c2 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, |