mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Another merge error, seen on bigendian machines
This commit is contained in:
parent
7a01984aba
commit
f9f2982fee
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ class StructTest(unittest.TestCase):
|
|||
self.fail("did not raise error for float coerce")
|
||||
|
||||
def test_isbigendian(self):
|
||||
self.assertEqual((struct.pack('=i', 1)[0] == chr(0)), ISBIGENDIAN)
|
||||
self.assertEqual((struct.pack('=i', 1)[0] == 0), ISBIGENDIAN)
|
||||
|
||||
def test_consistence(self):
|
||||
self.assertRaises(struct.error, struct.calcsize, 'Z')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue