8000 gh-130631: Make join_header_words() more similar to the original Perl version by serhiy-storchaka · Pull Request #130632 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-130631: Make join_header_words() more similar to the original Perl version #130632

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 4 commits into from
Apr 9, 2025
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
Fix tests.
  • Loading branch information
serhiy-storchaka committed Apr 2, 2025
commit 9e8cecfef81468bdc2ff9d3196cb49867f8aa2bc
6 changes: 3 additions & 3 deletions Lib/test/test_http_cookiejar.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def test_roundtrip(self):
("foo=bar;bar=baz", "foo=bar; bar=baz"),
('foo bar baz', "foo; bar; baz"),
(r'foo="\"" bar="\\"', r'foo="\""; bar="\\"'),
#("föo=bär", 'föo="bär"'),
("föo=bär", 'föo="bär"'),
('foo,,,bar', 'foo, bar'),
('foo=bar,bar=baz', 'foo=bar, bar=baz'),
("foo=\n", 'foo=""'),
Expand All @@ -307,8 +307,8 @@ def test_roundtrip(self):
(r'Basic realm="\"foo\\\\bar\""',
r'Basic; realm="\"foo\\\\bar\""'),

('n; foo="foo;_", bar=foo!_',
'n; foo="foo;_", bar="foo!_"'),
('n; foo="foo;_", bar="foo,_"',
'n; foo="foo;_", bar="foo,_"'),
]

for arg, expect in tests:
Expand Down
Loading
0