]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
silence the test when it is skipped on some platforms. should fix a
authorGregory P. Smith <greg@mad-scientist.com>
Sat, 14 Jun 2008 17:34:09 +0000 (17:34 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sat, 14 Jun 2008 17:34:09 +0000 (17:34 +0000)
buildbot.

Lib/test/test_struct.py

index 7ee47bf6e04d5301d5cc925c44cf8c188609e941..7fd058b0728238d78f7c9180b2e7c0a1fd684ec9 100644 (file)
@@ -569,11 +569,9 @@ class StructTest(unittest.TestCase):
             for c in '\x01\x7f\xff\x0f\xf0':
                 self.assertTrue(struct.unpack('>?', c)[0])
 
-    def test_crasher(self):
-        if IS32BIT:
+    if IS32BIT:
+        def test_crasher(self):
             self.assertRaises(MemoryError, struct.pack, "357913941c", "a")
-        else:
-            print "%s test_crasher skipped on 64bit build."