summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_binascii.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-04-04 16:27:04 (GMT)
committerGuido van Rossum <guido@python.org>2002-04-04 16:27:04 (GMT)
commit065fa4142a69a6a2c17f342ec86e96efcc645735 (patch)
tree3e92e9e2bff9a7bec5996c30f97e571ee705069e /Lib/test/test_binascii.py
parent55474766f0e0950c1c029aa910df7e850d1a1d8f (diff)
downloadcpython-065fa4142a69a6a2c17f342ec86e96efcc645735.zip
cpython-065fa4142a69a6a2c17f342ec86e96efcc645735.tar.gz
cpython-065fa4142a69a6a2c17f342ec86e96efcc645735.tar.bz2
Add test case for SF bug 534347.
Diffstat (limited to 'Lib/test/test_binascii.py')
-rwxr-xr-xLib/test/test_binascii.py8
1 files changed, 8 insertions, 0 deletions
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"