summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_binascii.py
Commit message (Collapse)AuthorAgeFilesLines
* remove the svn:executable property from files that don't have shebang linesBenjamin Peterson2010-03-051-0/+0
|
* Followup to #7703: a2b_hqx() didn't follow the new buffer API (neither in trunkAntoine Pitrou2010-01-161-30/+72
| | | | nor in py3k). Patch by Florent Xicluna as well as additional tests.
* Issue #7701: Fix crash in binascii.b2a_uu() in debug mode when given aAntoine Pitrou2010-01-151-0/+3
| | | | 1-byte argument. Patch by Victor Stinner.
* Issue #7703: Add support for the new buffer API to functions of theAntoine Pitrou2010-01-141-9/+26
| | | | | binascii module. Backported from py3k by Florent Xicluna, with some additional tests.
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-2/+2
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-2/+2
| | | | Patch by flox
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-4/+4
|
* Patch #1185447: binascii.b2a_qp() now correctly quotes binary charactersGeorg Brandl2007-03-131-0/+9
| | | | | | with ASCII value less than 32. Also, it correctly quotes dots only if they occur on a single line, as opposed to the previous behavior of quoting dots if they are the second character of any line.
* Bug #1588217: don't parse "= " as a soft line break in binascii'sGeorg Brandl2006-11-161-1/+1
| | | | | a2b_qp() function, instead leave it in the string as quopri.decode() does.
* SF #1022953: binascii.a2b_hqx("") raises SystemErrorRaymond Hettinger2004-09-061-0/+10
| | | | | | | | | | | | | Several functions adopted the strategy of altering a full lengthed string copy and resizing afterwards. That would fail if the initial string was short enough (0 or 1) to be interned. Interning precluded the subsequent resizing operation. The solution was to make sure the initial string was at least two characters long. Added tests to verify that all binascii functions do not crater when given an empty string argument.
* Whitespace normalization.Tim Peters2004-07-081-1/+1
|
* Port test_binascii.py to PyUnit and enhance tests.Walter Dörwald2004-03-151-123/+149
| | | | | Code coverage for binascii.c is at 92%. From SF patch #736962.
* binascii_a2b_base64: Properly return an empty string if the input was allThomas Wouters2003-03-171-0/+4
| | | | | | | invalid, rather than returning a string of random garbage of the estimated result length. Closes SF patch #703471 by Hye-Shik Chang. Will backport to 2.2-maint (consider it done.)
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-301-1/+1
| | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
* Whitespace normalization.Tim Peters2002-05-231-1/+1
|
* easy --disable-unicode proofing.Michael W. Hudson2002-05-201-2/+4
|
* Add test case for SF bug 534347.Guido van Rossum2002-04-041-0/+8
|
* Whitespace normalization.Tim Peters2001-10-181-1/+0
|
* Add test of hexlify on Unicode stringsJeremy Hylton2001-10-111-0/+4
|
* The first batch of changes recommended by the fixdiv tool. These areGuido van Rossum2001-09-041-2/+2
| | | | | mostly changes of / operators into //. Once or twice I did more or less than recommended.
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-4/+4
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Update the code to better reflect recommended style:Fred Drake2000-12-121-1/+1
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* tests for binascii.b2a_hex() and binascii.a2b_hex().Barry Warsaw2000-08-151-0/+19
|
* Added test for new crc32() function.Guido van Rossum2000-02-161-0/+6
|
* Rewritten -- this now tests the binascii *except* for the binhexGuido van Rossum1999-10-191-44/+85
| | | | module, which is tested by test_binhex.py.
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-12/+12
|
* Minor output message changeRoger E. Masse1997-01-161-1/+7
|
* test script for the binascii C module.Roger E. Masse1997-01-161-0/+40