]> granicus.if.org Git - python/commitdiff
Add skipping to struct test that only applies when overflow masking is in effect
authorMark Dickinson <dickinsm@gmail.com>
Tue, 7 Jul 2009 11:08:23 +0000 (11:08 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Tue, 7 Jul 2009 11:08:23 +0000 (11:08 +0000)
Lib/test/test_struct.py

index 61f48d691a2f8d5d352d9c4d4f825e619b5d1614..9f1fceeb71bf307c16861682a4611e8e8bcad6f6 100644 (file)
@@ -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]