Skip to content

Commit

Permalink
Fix conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Aug 6, 2023
1 parent a64e574 commit 1d0d516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_http_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ def test_http_response_parser_lenient_headers(response: Any) -> None:

@pytest.mark.dev_mode
def test_http_response_parser_strict_headers(response: Any) -> None:
if isinstance(parser, HttpRequestParserPy):
if isinstance(response, HttpResponseParserPy):
pytest.xfail("Py parser is lenient. May update py-parser later.")
with pytest.raises(http_exceptions.BadHttpMessage):
response.feed_data(b"HTTP/1.1 200 test\r\nFoo: abc\x01def\r\n\r\n")
Expand Down

0 comments on commit 1d0d516

Please sign in to comment.