mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add test case for SF bug 534347.
This commit is contained in:
parent
55474766f0
commit
065fa4142a
1 changed files with 8 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue