Kaydet (Commit) 065fa414 authored tarafından Guido van Rossum's avatar Guido van Rossum

Add test case for SF bug 534347.

üst 55474766
...@@ -113,3 +113,11 @@ else: ...@@ -113,3 +113,11 @@ else:
# Verify the treatment of Unicode strings # Verify the treatment of Unicode strings
verify(binascii.hexlify(u'a') == '61', "hexlify failed for Unicode") 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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment