From ee6f42a8f49aedaed3dfc567676c798908e4b3b0 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 16 Apr 2019 12:18:38 +0100 Subject: [PATCH] Exclude unused code lines --- httpcore/compat.py | 2 +- tests/test_requests.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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")] -- 2.47.3