From 1d0d5169bb456e29761b5e5497a7d5a779b726cc Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sun, 6 Aug 2023 23:44:05 +0100 Subject: [PATCH] Fix conditional --- tests/test_http_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_http_parser.py b/tests/test_http_parser.py index 15efbcbf218..367cf14da95 100644 --- a/tests/test_http_parser.py +++ b/tests/test_http_parser.py @@ -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")