summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2005-06-04 12:55:32 (GMT)
committerSkip Montanaro <skip@pobox.com>2005-06-04 12:55:32 (GMT)
commit61aa630d0169c4aecb40cf937adcf9250f23529d (patch)
treea0007c77388368e90ce41496e26e6b0497f6e6d0 /Lib/test
parent89f000e7a8d1569b57ad029004ef76dc5e2956d8 (diff)
downloadcpython-61aa630d0169c4aecb40cf937adcf9250f23529d.zip
cpython-61aa630d0169c4aecb40cf937adcf9250f23529d.tar.gz
cpython-61aa630d0169c4aecb40cf937adcf9250f23529d.tar.bz2
Fix missing assignments of marshal.load() values. Closes #1214662.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_marshal.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py
index 22cf63d..b62e2d8 100644
--- a/Lib/test/test_marshal.py
+++ b/Lib/test/test_marshal.py
@@ -111,7 +111,7 @@ class StringTestCase(unittest.TestCase):
self.assertEqual(s, new)
self.assertEqual(type(s), type(new))
marshal.dump(s, file(test_support.TESTFN, "wb"))
- marshal.load(file(test_support.TESTFN, "rb"))
+ new = marshal.load(file(test_support.TESTFN, "rb"))
self.assertEqual(s, new)
self.assertEqual(type(s), type(new))
os.unlink(test_support.TESTFN)
@@ -122,7 +122,7 @@ class StringTestCase(unittest.TestCase):
self.assertEqual(s, new)
self.assertEqual(type(s), type(new))
marshal.dump(s, file(test_support.TESTFN, "wb"))
- marshal.load(file(test_support.TESTFN, "rb"))
+ new = marshal.load(file(test_support.TESTFN, "rb"))
self.assertEqual(s, new)
self.assertEqual(type(s), type(new))
os.unlink(test_support.TESTFN)
@@ -133,7 +133,7 @@ class StringTestCase(unittest.TestCase):
new = marshal.loads(marshal.dumps(b))
self.assertEqual(s, new)
marshal.dump(b, file(test_support.TESTFN, "wb"))
- marshal.load(file(test_support.TESTFN, "rb"))
+ new = marshal.load(file(test_support.TESTFN, "rb"))
self.assertEqual(s, new)
os.unlink(test_support.TESTFN)
@@ -162,7 +162,7 @@ class ContainerTestCase(unittest.TestCase):
new = marshal.loads(marshal.dumps(self.d))
self.assertEqual(self.d, new)
marshal.dump(self.d, file(test_support.TESTFN, "wb"))
- marshal.load(file(test_support.TESTFN, "rb"))
+ new = marshal.load(file(test_support.TESTFN, "rb"))
self.assertEqual(self.d, new)
os.unlink(test_support.TESTFN)
@@ -171,7 +171,7 @@ class ContainerTestCase(unittest.TestCase):
new = marshal.loads(marshal.dumps(lst))
self.assertEqual(lst, new)
marshal.dump(lst, file(test_support.TESTFN, "wb"))
- marshal.load(file(test_support.TESTFN, "rb"))
+ new = marshal.load(file(test_support.TESTFN, "rb"))
self.assertEqual(lst, new)
os.unlink(test_support.TESTFN)
@@ -180,7 +180,7 @@ class ContainerTestCase(unittest.TestCase):
new = marshal.loads(marshal.dumps(t))
self.assertEqual(t, new)
marshal.dump(t, file(test_support.TESTFN, "wb"))
- marshal.load(file(test_support.TESTFN, "rb"))
+ new = marshal.load(file(test_support.TESTFN, "rb"))
self.assertEqual(t, new)
os.unlink(test_support.TESTFN)
@@ -192,7 +192,7 @@ class ContainerTestCase(unittest.TestCase):
self.assert_(isinstance(new, constructor))
self.assertNotEqual(id(t), id(new))
marshal.dump(t, file(test_support.TESTFN, "wb"))
- marshal.load(file(test_support.TESTFN, "rb"))
+ new = marshal.load(file(test_support.TESTFN, "rb"))
self.assertEqual(t, new)
os.unlink(test_support.TESTFN)