Fix unittest.

This commit is contained in:
Guido van Rossum 2007-02-12 00:23:56 +00:00
parent dde4c2ca56
commit e19aad4c7b
1 changed files with 1 additions and 1 deletions

View File

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