diff options
author | Marc-André Lemburg <mal@egenix.com> | 2001-01-17 19:11:13 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2001-01-17 19:11:13 (GMT) |
commit | 3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e (patch) | |
tree | eea0f44df59aaaf014eb4580f1fad308e31601bf /Lib/test/test_binascii.py | |
parent | 8551dd60781f738e5e5ef4e22b6f071d27e20b50 (diff) | |
download | cpython-3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e.zip cpython-3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e.tar.gz cpython-3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e.tar.bz2 |
This patch removes all uses of "assert" in the regression test suite
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.
Diffstat (limited to 'Lib/test/test_binascii.py')
-rwxr-xr-x | Lib/test/test_binascii.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_binascii.py b/Lib/test/test_binascii.py index 20f5400..f03fc55 100755 --- a/Lib/test/test_binascii.py +++ b/Lib/test/test_binascii.py @@ -1,6 +1,6 @@ """Test the binascii C module.""" -from test_support import verbose +from test_support import verify, verbose import binascii # Show module doc string @@ -42,7 +42,7 @@ res = "" for line in lines: b = binascii.a2b_base64(line) res = res + b -assert res == testdata +verify(res == testdata) # Test base64 with random invalid characters sprinkled throughout # (This requires a new version of binascii.) @@ -67,7 +67,7 @@ res = "" for line in map(addnoise, lines): b = binascii.a2b_base64(line) res = res + b -assert res == testdata +verify(res == testdata) # Test uu print "uu test" @@ -82,7 +82,7 @@ res = "" for line in lines: b = binascii.a2b_uu(line) res = res + b -assert res == testdata +verify(res == testdata) # Test crc32() crc = binascii.crc32("Test the CRC-32 of") |