]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Exclude unused code lines 3/head
authorTom Christie <tom@tomchristie.com>
Tue, 16 Apr 2019 11:18:38 +0000 (12:18 +0100)
committerTom Christie <tom@tomchristie.com>
Tue, 16 Apr 2019 11:18:38 +0000 (12:18 +0100)
httpcore/compat.py
tests/test_requests.py

index 5755e384fe6a88aa2e4fef7879e0b566b04aa1ae..5369c5e8d8a7a946bb77e045bb26b32c5a592e7e 100644 (file)
@@ -1,4 +1,4 @@
 try:
     import brotli
 except ImportError:
-    brotli = None
+    brotli = None  # pragma: nocover
index a433e0e3b25ed28e657d64b49edf2d53e7cdd5df..bdbf2caa08c27078c6945b4f685a06cbcf15d623 100644 (file)
@@ -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")]