Commit 192f6782 authored by Ezio Melotti's avatar Ezio Melotti

Try to fix test_struct.py on some buildbots.

parent ee1e2c90
......@@ -493,7 +493,7 @@ class StructTest(unittest.TestCase):
def test_issue4228(self):
# Packing a long may yield either 32 or 64 bits
with _check_py3k_warnings(("struct integer overflow masking is deprecated",
DeprecationWarning)):
DeprecationWarning), quite=True):
x = struct.pack('L', -1)[:4]
self.assertEqual(x, '\xff'*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