Try to fix test_struct.py on some buildbots.
This commit is contained in:
parent
ee1e2c90dd
commit
192f6782c6
|
@ -493,7 +493,7 @@ class StructTest(unittest.TestCase):
|
||||||
def test_issue4228(self):
|
def test_issue4228(self):
|
||||||
# Packing a long may yield either 32 or 64 bits
|
# Packing a long may yield either 32 or 64 bits
|
||||||
with _check_py3k_warnings(("struct integer overflow masking is deprecated",
|
with _check_py3k_warnings(("struct integer overflow masking is deprecated",
|
||||||
DeprecationWarning)):
|
DeprecationWarning), quite=True):
|
||||||
x = struct.pack('L', -1)[:4]
|
x = struct.pack('L', -1)[:4]
|
||||||
self.assertEqual(x, '\xff'*4)
|
self.assertEqual(x, '\xff'*4)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue