diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_marshal.py | 5 |
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, |