summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_marshal.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2004-03-26 15:09:27 (GMT)
committerArmin Rigo <arigo@tunes.org>2004-03-26 15:09:27 (GMT)
commit01ab279056c0452516e58d47979be70455d3f581 (patch)
treed19cb861ece73a2365a0193bba8712aa7fb04943 /Lib/test/test_marshal.py
parent01c9f8c35f583338e3638906ceeef9d2f29a0254 (diff)
downloadcpython-01ab279056c0452516e58d47979be70455d3f581.zip
cpython-01ab279056c0452516e58d47979be70455d3f581.tar.gz
cpython-01ab279056c0452516e58d47979be70455d3f581.tar.bz2
Marshal clean-up (SF patch #873224)
Diffstat (limited to 'Lib/test/test_marshal.py')
-rw-r--r--Lib/test/test_marshal.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_marshal.py b/Lib/test/test_marshal.py
index f971d11..eb07521 100644
--- a/Lib/test/test_marshal.py
+++ b/Lib/test/test_marshal.py
@@ -175,6 +175,11 @@ class BugsTestCase(unittest.TestCase):
# Simple-minded check for SF 588452: Debug build crashes
marshal.dumps([128] * 1000)
+ def test_patch_873224(self):
+ self.assertRaises(Exception, marshal.loads, '0')
+ self.assertRaises(Exception, marshal.loads, 'f')
+ self.assertRaises(Exception, marshal.loads, marshal.dumps(5L)[:-1])
+
def test_main():
test_support.run_unittest(IntTestCase,
FloatTestCase,