Exclude unused code lines
This commit is contained in:
parent
042dd22058
commit
ee6f42a8f4
@ -1,4 +1,4 @@
|
||||
try:
|
||||
import brotli
|
||||
except ImportError:
|
||||
brotli = None
|
||||
brotli = None # pragma: nocover
|
||||
|
||||
@ -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")]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user