mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #23738: Merge 3.4 into 3.5
This commit is contained in:
commit
0ff89099c7
10 changed files with 75 additions and 33 deletions
|
@ -178,6 +178,8 @@ class BinASCIITest(unittest.TestCase):
|
|||
self.assertEqual(binascii.unhexlify(self.type2test(t)), u)
|
||||
|
||||
def test_qp(self):
|
||||
binascii.a2b_qp(data=b"", header=False) # Keyword arguments allowed
|
||||
|
||||
# A test for SF bug 534347 (segfaults without the proper fix)
|
||||
try:
|
||||
binascii.a2b_qp(b"", **{1:1})
|
||||
|
@ -185,6 +187,7 @@ class BinASCIITest(unittest.TestCase):
|
|||
pass
|
||||
else:
|
||||
self.fail("binascii.a2b_qp(**{1:1}) didn't raise TypeError")
|
||||
|
||||
self.assertEqual(binascii.a2b_qp(b"= "), b"= ")
|
||||
self.assertEqual(binascii.a2b_qp(b"=="), b"=")
|
||||
self.assertEqual(binascii.a2b_qp(b"=AX"), b"=AX")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue