Skip to content
Myr

Exclude unused code lines

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by Tom Christie · parent 042dd22 · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • tests:+2 added−2 removed
  • other:+1 added−1 removed

2 files+3 added−3 removed

modified:httpcore/compat.py+1 added-1 removed
1try:2 import brotli3except ImportError:4 brotli = None4 brotli = None # pragma: nocover
modified:tests/test_requests.py+2 added-2 removed
20 unmodified lines
212223def test_transfer_encoding_header():24 async def streaming_body(data):25 yield data25 yield data # pragma: nocover2627 body = streaming_body(b"test 123")2829 request = httpcore.Request("POST", "http://example.org", body=body)
25 unmodified lines
555657def test_override_content_length_header():58 async def streaming_body(data):59 yield data59 yield data # pragma: nocover6061 body = streaming_body(b"test 123")62 headers = [(b"content-length", b"8")]63
29 unmodified lines