8000 gh-93010: InvalidHeaderError used but nonexistent · Pull Request #93015 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-93010: InvalidHeaderError used but nonexistent #93015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from May 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
gh-93010 added test case
  • Loading branch information
OTheDev committed May 20, 2022
commit 131f7d205928db8ebd862a31a42394ca4d672c08
7 changes: 6 additions & 1 deletion Lib/test/test_email/test_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from email.mime.message import MIMEMessage
from email.mime.multipart import MIMEMultipart
from email.mime.nonmultipart import MIMENonMultipart
from email.headerregistry import HeaderRegistry
from email import utils
from email import errors
from email import encoders
Expand Down Expand Up @@ -5541,7 +5542,11 @@ def test_long_headers_flatten(self):
result = fp.getvalue()
self._signed_parts_eq(original, result)


class TestHeaderRegistry(TestEmailBase):
# See issue 93010.
def test_HeaderRegistry(self):
reg = HeaderRegistry()
reg('Content-Disposition', 'attachment; 0*00="foo"')

if __name__ == '__main__':
unittest.main()
0