From: Mark Dickinson Date: Tue, 7 Jul 2009 11:08:23 +0000 (+0000) Subject: Add skipping to struct test that only applies when overflow masking is in effect X-Git-Tag: v2.7a1~819 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca6b5f36f4467ebd0922b927e7ecf3d2ad8f6f2f;p=thirdparty%2FPython%2Fcpython.git Add skipping to struct test that only applies when overflow masking is in effect --- diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index 61f48d691a2f..9f1fceeb71bf 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -465,6 +465,8 @@ class StructTest(unittest.TestCase): self.check_float_coerce(endian + fmt, 1.0) self.check_float_coerce(endian + fmt, 1.5) + @unittest.skipUnless(PY_STRUCT_OVERFLOW_MASKING, + "only applies when overflow masking enabled") def test_issue4228(self): # Packing a long may yield either 32 or 64 bits x = struct.pack('L', -1)[:4]