]> granicus.if.org Git - python/commitdiff
Add test case for SF bug 534347.
authorGuido van Rossum <guido@python.org>
Thu, 4 Apr 2002 16:27:04 +0000 (16:27 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 4 Apr 2002 16:27:04 +0000 (16:27 +0000)
Lib/test/test_binascii.py

index c14f894c0d50ee579f974db1f9e0eb75f5a435cb..5b45f7d03a34f1954a987b1bbe83d8dc16b28f0b 100755 (executable)
@@ -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"