From ebbc003c55c5a0280208c4d7502bd6038520f29b Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 9 Aug 2019 17:10:59 +0400 Subject: [PATCH] Fix invalid Content-Encoding header test (#197) --- tests/test_decoders.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_decoders.py b/tests/test_decoders.py index e292eb06..83ad1ec1 100644 --- a/tests/test_decoders.py +++ b/tests/test_decoders.py @@ -88,8 +88,8 @@ def test_decoding_errors(header_value): response.content -def test_invalid_content_encoding_header(header_value): - headers = [(b"Content-Encoding", header_value)] +def test_invalid_content_encoding_header(): + headers = [(b"Content-Encoding", b"invalid-header")] body = b"test 123" response = httpx.Response(200, headers=headers, content=body)