summaryrefslogtreecommitdiff
path: root/Lib/test/test_struct.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-07-07 11:08:23 +0000
committerMark Dickinson <dickinsm@gmail.com>2009-07-07 11:08:23 +0000
commitca6b5f36f4467ebd0922b927e7ecf3d2ad8f6f2f (patch)
treea5aca6888e5cf56913ca6f4ddfd13fe93e5bf932 /Lib/test/test_struct.py
parent24766ba6afa96cec03751258ee288e456fb7d07e (diff)
downloadcpython-git-ca6b5f36f4467ebd0922b927e7ecf3d2ad8f6f2f.tar.gz
Add skipping to struct test that only applies when overflow masking is in effect
Diffstat (limited to 'Lib/test/test_struct.py')
-rw-r--r--Lib/test/test_struct.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py
index 61f48d691a..9f1fceeb71 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]