Skip to content

Commit 74fc245

Browse files
committed
Add possible regression test in test_base64
Regression was found while testing the new C implementation, when foldspaces was used with b85encode (since a chunk could end in z without having been folded)
1 parent 84e20ea commit 74fc245

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_base64.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@ def test_b85encode(self):
528528
b"""0123456789!@#0^&*();:<>,. []{}""":
529529
b"""VPa!sWoBn+X=-b1ZEkOHadLBXb#`}nd3r%YLqtVJM@UIZOH55pPf$@("""
530530
b"""Q&d$}S6EqEFflSSG&MFiI5{CeBQRbjDkv#CIy^osE+AW7dwl""",
531+
b"paddu\xc7": b'aA9O*b;k',
531532
b'no padding..': b'Zf_uPVPs@!Zf7no',
532533
b'zero compression\x00\x00\x00\x00': b'dS!BNAY*TBaB^jHb7^mG00000',
533534
b'zero compression\x00\x00\x00': b'dS!BNAY*TBaB^jHb7^mG0000',

0 commit comments

Comments
 (0)