mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
Issue #7701: Fix crash in binascii.b2a_uu() in debug mode when given a
1-byte argument. Patch by Victor Stinner.
This commit is contained in:
parent
3ffa43db48
commit
c391ad007b
3 changed files with 7 additions and 1 deletions
|
@ -109,6 +109,9 @@ class BinASCIITest(unittest.TestCase):
|
|||
|
||||
self.assertRaises(binascii.Error, binascii.b2a_uu, 46*"!")
|
||||
|
||||
# Issue #7701 (crash on a pydebug build)
|
||||
self.assertEqual(binascii.b2a_uu('x'), '!> \n')
|
||||
|
||||
def test_crc32(self):
|
||||
crc = binascii.crc32("Test the CRC-32 of")
|
||||
crc = binascii.crc32(" this string.", crc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue