]> granicus.if.org Git - python/commitdiff
Fix unittest.
authorGuido van Rossum <guido@python.org>
Mon, 12 Feb 2007 00:23:56 +0000 (00:23 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 12 Feb 2007 00:23:56 +0000 (00:23 +0000)
Lib/test/test_marshal.py

index bcd2918252a71db829cff1246cfa4c39e6f4a569..6c98022057ba87ec647eb421b794e8674ca0d914 100644 (file)
@@ -167,7 +167,7 @@ class ContainerTestCase(unittest.TestCase):
         os.unlink(test_support.TESTFN)
 
     def test_list(self):
-        lst = self.d.items()
+        lst = list(self.d.items())
         new = marshal.loads(marshal.dumps(lst))
         self.assertEqual(lst, new)
         marshal.dump(lst, open(test_support.TESTFN, "wb"))