From 065fa4142a69a6a2c17f342ec86e96efcc645735 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 4 Apr 2002 16:27:04 +0000 Subject: Add test case for SF bug 534347. --- Lib/test/test_binascii.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Lib/test/test_binascii.py b/Lib/test/test_binascii.py index c14f894..5b45f7d 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" -- cgit v0.12