diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-15 00:23:22 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-15 00:23:22 (GMT) |
commit | 4cf72aaafbf165c544a4fd7e9bd965bc4348646c (patch) | |
tree | 4ad0915043345d2cb1e5933cff9254c1f4891729 /Lib | |
parent | 47c8ede0b809980830818caa1e4957743eb25b3f (diff) | |
download | cpython-4cf72aaafbf165c544a4fd7e9bd965bc4348646c.zip cpython-4cf72aaafbf165c544a4fd7e9bd965bc4348646c.tar.gz cpython-4cf72aaafbf165c544a4fd7e9bd965bc4348646c.tar.bz2 |
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.
........
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/test_binascii.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_binascii.py b/Lib/test/test_binascii.py index ea8be31..4ebf429 100755 --- a/Lib/test/test_binascii.py +++ b/Lib/test/test_binascii.py @@ -104,6 +104,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) |