diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-15 00:18:00 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-15 00:18:00 (GMT) |
| commit | c391ad007b13ad781ab19c522168e86313706804 (patch) | |
| tree | bb2e9a0422fc4d94a181d281f586608e1d8e4994 /Lib/test/test_binascii.py | |
| parent | 3ffa43db4892d3a836c63911c5a13a8be5670fa5 (diff) | |
| download | cpython-c391ad007b13ad781ab19c522168e86313706804.zip cpython-c391ad007b13ad781ab19c522168e86313706804.tar.gz cpython-c391ad007b13ad781ab19c522168e86313706804.tar.bz2 | |
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/test/test_binascii.py')
| -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 c8fad58..b73f119 100755 --- a/Lib/test/test_binascii.py +++ b/Lib/test/test_binascii.py @@ -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) |
