Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e19aad4

Browse files
committed
Fix unittest.
1 parent dde4c2c commit e19aad4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_marshal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def test_dict(self):
167167
os.unlink(test_support.TESTFN)
168168

169169
def test_list(self):
170-
lst = self.d.items()
170+
lst = list(self.d.items())
171171
new = marshal.loads(marshal.dumps(lst))
172172
self.assertEqual(lst, new)
173173
marshal.dump(lst, open(test_support.TESTFN, "wb"))

0 commit comments

Comments
 (0)