We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73c9326 commit 802d495Copy full SHA for 802d495
Lib/test/test_base64.py
@@ -586,6 +586,7 @@ def test_a85decode(self):
586
eq(base64.a85decode(b'y+<Vd', foldspaces=True, adobe=False), b' '*7)
587
eq(base64.a85decode(b'y+<U', foldspaces=True, adobe=False), b' '*6)
588
eq(base64.a85decode(b'y+9', foldspaces=True, adobe=False), b' '*5)
589
+ eq(base64.a85decode(b'aaaaay', foldspaces=True), b'\xc9\x80\x0b@ ')
590
591
self.check_other_types(base64.a85decode, b'GB\\6`E-ZP=Df.1GEb>',
592
b"www.python.org")
@@ -689,6 +690,8 @@ def test_a85decode_errors(self):
689
690
self.assertRaises(ValueError, base64.a85decode, b's8W', adobe=False)
691
self.assertRaises(ValueError, base64.a85decode, b's8W-', adobe=False)
692
self.assertRaises(ValueError, base64.a85decode, b's8W-"', adobe=False)
693
+ self.assertRaises(ValueError, base64.a85decode, b'aaaay',
694
+ foldspaces=True)
695
696
def test_b85decode_errors(self):
697
illegal = list(range(33)) + \
0 commit comments