Another merge error, seen on bigendian machines
This commit is contained in:
parent
7a01984aba
commit
f9f2982fee
|
@ -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…
Reference in New Issue