[Python-checkins] r73884 - python/trunk/Lib/test/test_struct.py

mark.dickinson python-checkins at python.org
Tue Jul 7 13:08:23 CEST 2009


Author: mark.dickinson
Date: Tue Jul  7 13:08:23 2009
New Revision: 73884

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

Modified:
   python/trunk/Lib/test/test_struct.py

Modified: python/trunk/Lib/test/test_struct.py
==============================================================================
--- python/trunk/Lib/test/test_struct.py	(original)
+++ python/trunk/Lib/test/test_struct.py	Tue Jul  7 13:08:23 2009
@@ -465,6 +465,8 @@
                 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]


More information about the Python-checkins mailing list