summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_binascii.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_binascii.py b/Lib/test/test_binascii.py
index 04d8f9d..22d53af 100644
--- a/Lib/test/test_binascii.py
+++ b/Lib/test/test_binascii.py
@@ -162,7 +162,9 @@ class BinASCIITest(unittest.TestCase):
self.assertRaises(binascii.Error, binascii.a2b_hex, t[:-1])
self.assertRaises(binascii.Error, binascii.a2b_hex, t[:-1] + b'q')
- self.assertEqual(binascii.hexlify(b'a'), b'61')
+ # Confirm that b2a_hex == hexlify and a2b_hex == unhexlify
+ self.assertEqual(binascii.hexlify(self.type2test(s)), t)
+ self.assertEqual(binascii.unhexlify(self.type2test(t)), u)
def test_qp(self):
# A test for SF bug 534347 (segfaults without the proper fix)