]> granicus.if.org Git - python/commitdiff
Bug #2137: Remove test_struct.test_crasher, which was meaningful
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 18 Feb 2008 17:46:27 +0000 (17:46 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 18 Feb 2008 17:46:27 +0000 (17:46 +0000)
only on 32-bit systems.

Lib/test/test_struct.py
Misc/NEWS

index 71e35adc0f2b86c7b955538c47258cba0cfa5199..7ecb6ac9a04dd9dde5642cef41d084c4863f41fb 100644 (file)
@@ -618,12 +618,8 @@ def test_unpack_with_buffer():
     value, = struct.unpack('>I', data)
     vereq(value, 0x12345678)
 
-def test_crasher():
-    assertRaises(MemoryError, struct.pack, "357913941c", "a")
-
 # Test methods to pack and unpack from buffers rather than strings.
 test_unpack_from()
 test_pack_into()
 test_pack_into_fn()
 test_unpack_with_buffer()
-test_crasher()
index ac96e2117ff3cdbc8d121b1d1b6137a94f922520..e90413714bd2507c813c21c3973e8504bfc801d0 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -15,6 +15,9 @@ Extension Modules
 - Fix deallocation of array objects when allocation ran out of memory.
   Remove array test case that was incorrect on 64-bit systems.
 
+- Bug #2137: Remove test_struct.test_crasher, which was meaningful
+  only on 32-bit systems.
+
 
 What's New in Python 2.5.2c1?
 =============================