summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-06-17 21:56:01 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-06-17 21:56:01 (GMT)
commitf9f2982feeee97b15fd3706122e250bfeeb97153 (patch)
tree41715317e499366604479db459d3ca33353fa8d5
parent7a01984aba532b731dd6a06610b0ce523bef4f5e (diff)
downloadcpython-f9f2982feeee97b15fd3706122e250bfeeb97153.zip
cpython-f9f2982feeee97b15fd3706122e250bfeeb97153.tar.gz
cpython-f9f2982feeee97b15fd3706122e250bfeeb97153.tar.bz2
Another merge error, seen on bigendian machines
-rw-r--r--Lib/test/test_struct.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py
index 616e665..bce8fdc 100644
--- a/Lib/test/test_struct.py
+++ b/Lib/test/test_struct.py
@@ -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')