diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2015-01-20 19:59:46 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2015-01-20 19:59:46 (GMT) |
commit | b176d40398f4a6f15fc3f63ef55fb064eca13ee3 (patch) | |
tree | fe7c0b7e087391e85c962fc78c7ada63f5758b24 /Lib | |
parent | 5a494f6ad850b7d2a4a5007fc27a1a1614a2c2a0 (diff) | |
download | cpython-b176d40398f4a6f15fc3f63ef55fb064eca13ee3.zip cpython-b176d40398f4a6f15fc3f63ef55fb064eca13ee3.tar.gz cpython-b176d40398f4a6f15fc3f63ef55fb064eca13ee3.tar.bz2 |
Issue #23280: Fix docstrings for binascii.(un)hexlify
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_binascii.py | 4 |
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) |