mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Merged revisions 77506 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77506 | antoine.pitrou | 2010-01-15 01:18:00 +0100 (ven., 15 janv. 2010) | 4 lines 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
82feb1f360
commit
2843aa8f53
3 changed files with 7 additions and 1 deletions
|
@ -108,6 +108,9 @@ class BinASCIITest(unittest.TestCase):
|
|||
|
||||
self.assertRaises(binascii.Error, binascii.b2a_uu, 46*b"!")
|
||||
|
||||
# Issue #7701 (crash on a pydebug build)
|
||||
self.assertEqual(binascii.b2a_uu(b'x'), b'!> \n')
|
||||
|
||||
def test_crc32(self):
|
||||
crc = binascii.crc32(b"Test the CRC-32 of")
|
||||
crc = binascii.crc32(b" this string.", crc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue