Exclude unused code lines

This commit is contained in:
Tom Christie 2019-04-16 12:18:38 +01:00
parent 042dd22058
commit ee6f42a8f4
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
try:
import brotli
except ImportError:
brotli = None
brotli = None # pragma: nocover

View 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")]