Skip to content

Commit 5ad7288

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 12274d0 commit 5ad7288

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_cookie_helpers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,9 +1178,7 @@ def test_parse_set_cookie_headers_literal_ctl_chars() -> None:
11781178

11791179
def test_parse_set_cookie_headers_literal_ctl_chars_preserves_others() -> None:
11801180
"""Ensure a cookie with literal control chars doesn't break subsequent cookies."""
1181-
result = parse_set_cookie_headers(
1182-
['bad="a\x07b"; good=value', "another=cookie"]
1183-
)
1181+
result = parse_set_cookie_headers(['bad="a\x07b"; good=value', "another=cookie"])
11841182
# "good" is an attribute of "bad" (same header), so it's not a separate cookie.
11851183
# "another" is in a separate header and must always be preserved.
11861184
names = [name for name, _ in result]

0 commit comments

Comments
 (0)