From: Gregory P. Smith Date: Sat, 14 Jun 2008 17:34:09 +0000 (+0000) Subject: silence the test when it is skipped on some platforms. should fix a X-Git-Tag: v2.6b1~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0205d0a46667bd69b45863537931750ec7ee1c0;p=thirdparty%2FPython%2Fcpython.git silence the test when it is skipped on some platforms. should fix a buildbot. --- diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index 7ee47bf6e04d..7fd058b07282 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -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."