From: Tom Christie Date: Tue, 16 Apr 2019 11:18:38 +0000 (+0100) Subject: Exclude unused code lines X-Git-Tag: 0.1.0~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee6f42a8f49aedaed3dfc567676c798908e4b3b0;p=thirdparty%2Fhttpx.git Exclude unused code lines --- diff --git a/httpcore/compat.py b/httpcore/compat.py index 5755e384..5369c5e8 100644 --- a/httpcore/compat.py +++ b/httpcore/compat.py @@ -1,4 +1,4 @@ try: import brotli except ImportError: - brotli = None + brotli = None # pragma: nocover diff --git a/tests/test_requests.py b/tests/test_requests.py index a433e0e3..bdbf2caa 100644 --- a/tests/test_requests.py +++ b/tests/test_requests.py @@ -22,7 +22,7 @@ def test_content_length_header(): def test_transfer_encoding_header(): async def streaming_body(data): - yield data + yield data # pragma: nocover body = streaming_body(b"test 123") @@ -56,7 +56,7 @@ def test_override_accept_encoding_header(): def test_override_content_length_header(): async def streaming_body(data): - yield data + yield data # pragma: nocover body = streaming_body(b"test 123") headers = [(b"content-length", b"8")]