]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport theller's checkin of
authorMichael W. Hudson <mwh@python.net>
Tue, 24 Sep 2002 11:56:15 +0000 (11:56 +0000)
committerMichael W. Hudson <mwh@python.net>
Tue, 24 Sep 2002 11:56:15 +0000 (11:56 +0000)
    revision 1.3 of test_marshal.py

Fix SF 588452: debug build crashes on marshal.dumps([128] * 1000).
See there for a description.

Added test case.

Bugfix candidate for 2.2.x, not sure about previous versions:
probably low priority, because virtually no one runs debug builds.

Lib/test/test_marshal.py

index 38b3cd4698c6bdf81f701f68d801ae54533ebda6..753f5d5ee7173943c6e772cce73e8dac6ae6f776 100644 (file)
@@ -39,3 +39,6 @@ for base in maxint64, minint64, -maxint64, -(minint64 >> 1):
             base = 0
         else:
             base >>= 1
+
+# Simple-minded check for SF 588452: Debug build crashes
+marshal.dumps([128] * 1000)