diff options
| author | Guido van Rossum <guido@python.org> | 2002-04-04 16:27:04 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2002-04-04 16:27:04 +0000 |
| commit | 065fa4142a69a6a2c17f342ec86e96efcc645735 (patch) | |
| tree | 3e92e9e2bff9a7bec5996c30f97e571ee705069e | |
| parent | 55474766f0e0950c1c029aa910df7e850d1a1d8f (diff) | |
| download | cpython-git-065fa4142a69a6a2c17f342ec86e96efcc645735.tar.gz | |
Add test case for SF bug 534347.
| -rwxr-xr-x | Lib/test/test_binascii.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_binascii.py b/Lib/test/test_binascii.py index c14f894c0d..5b45f7d03a 100755 --- a/Lib/test/test_binascii.py +++ b/Lib/test/test_binascii.py @@ -113,3 +113,11 @@ else: # Verify the treatment of Unicode strings verify(binascii.hexlify(u'a') == '61', "hexlify failed for Unicode") + +# A test for SF bug 534347 (segfaults without the proper fix) +try: + binascii.a2b_qp("", **{1:1}) +except TypeError: + pass +else: + raise TestFailed, "binascii..a2b_qp(**{1:1}) didn't raise TypeError" |
