summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_binascii.py
Commit message (Collapse)AuthorAgeFilesLines
* 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