diff options
| author | Łukasz Langa <lukasz@langa.pl> | 2021-10-13 19:12:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-13 19:12:22 +0200 |
| commit | f8473f6f7603f8cccccc3307d4cb853587be41b3 (patch) | |
| tree | 1155b0afe30283840770d0e73e13b20407eb4c77 /Lib/test | |
| parent | 151234f5da4b1922e3d91233a6eddda92d7269b0 (diff) | |
| download | cpython-git-f8473f6f7603f8cccccc3307d4cb853587be41b3.tar.gz | |
[3.10] bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452) (GH-28930)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit b9e687618d3489944f29adbd2be50b46940c9e70)
Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
Diffstat (limited to 'Lib/test')
| -rw-r--r-- | Lib/test/test_email/test_email.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_email/test_email.py b/Lib/test/test_email/test_email.py index 4001f71647..54ffcdc544 100644 --- a/Lib/test/test_email/test_email.py +++ b/Lib/test/test_email/test_email.py @@ -3009,6 +3009,7 @@ class TestMiscellaneous(TestEmailBase): self.assertIsNone(utils.parsedate_tz('0')) self.assertIsNone(utils.parsedate('A Complete Waste of Time')) self.assertIsNone(utils.parsedate_tz('A Complete Waste of Time')) + self.assertIsNone(utils.parsedate_tz('Wed, 3 Apr 2002 12.34.56.78+0800')) # Not a part of the spec but, but this has historically worked: self.assertIsNone(utils.parsedate(None)) self.assertIsNone(utils.parsedate_tz(None)) |
