From 16c586eb39d5d734a6b1e507128537231ba53326 Mon Sep 17 00:00:00 2001 From: "mark.dickinson" Date: Tue, 7 Jul 2009 11:08:23 +0000 Subject: [PATCH] Add skipping to struct test that only applies when overflow masking is in effect git-svn-id: http://svn.python.org/projects/python/trunk@73884 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Lib/test/test_struct.py | 2 ++ 1 file changed, 2 insertions(+) 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] -- 2.11.4.GIT