Fix unittest.
This commit is contained in:
parent
dde4c2ca56
commit
e19aad4c7b
|
@ -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"))
|
||||||
|
|
Loading…
Reference in New Issue