Commit ca6b5f36 authored by Mark Dickinson's avatar Mark Dickinson

Add skipping to struct test that only applies when overflow masking is in effect

parent 24766ba6
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment