diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2020-01-05 14:15:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-05 14:15:50 +0200 |
| commit | b19c0d77e6f25ea831ab608c71f15d0d9266c8c4 (patch) | |
| tree | 42f6ede3be2365c767fd15a0faf4baa3f9a82f11 /Lib/test/test_base64.py | |
| parent | 41ec17e45d54473d32f543396293256f1581e44d (diff) | |
| download | cpython-git-b19c0d77e6f25ea831ab608c71f15d0d9266c8c4.tar.gz | |
bpo-39055: Reject a trailing \n in base64.b64decode() with validate=True. (GH-17616)
Diffstat (limited to 'Lib/test/test_base64.py')
| -rw-r--r-- | Lib/test/test_base64.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_base64.py b/Lib/test/test_base64.py index 2a4cc2acad..7dba6635d4 100644 --- a/Lib/test/test_base64.py +++ b/Lib/test/test_base64.py @@ -250,6 +250,7 @@ class BaseXYTestCase(unittest.TestCase): (b'3d}==', b'\xdd'), (b'@@', b''), (b'!', b''), + (b"YWJj\n", b"abc"), (b'YWJj\nYWI=', b'abcab')) funcs = ( base64.b64decode, |
