We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a1fa9a commit d9ed032Copy full SHA for d9ed032
Lib/test/test_struct.py
@@ -586,8 +586,8 @@ def test_Struct_reinitialization(self):
586
# when running with regrtest -L.
587
s = struct.Struct('i')
588
with self.assertWarns(DeprecationWarning):
589
- s.__init__('ii')
590
- self.assertEqual(s.format, 'ii')
+ s.__init__('<ii')
+ self.assertEqual(s.format, '<ii')
591
packed = b'\x01\x00\x00\x00\x02\x00\x00\x00'
592
self.assertEqual(s.pack(1, 2), packed)
593
self.assertEqual(s.unpack(packed), (1, 2))
0 commit comments