Skip to content
Myr

Skip coverage on breaks right before returns for Python 3.8 (#226)

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

authored by Seth Michael Larson · committed by GitHub · parent 21939fd · Browse files · 3 files+5 added−7 removed
This commit

State

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

Diff stats

3 files+5 added−7 removed

  • other:+5 added−7 removed

3 files+5 added−7 removed

modified:httpx/dispatch/http11.py+4 added-3 removed
127 unmodified lines
128 if isinstance(event, h11.InformationalResponse):129 continue130 else:131 assert isinstance(event, h11.Response)132 break132 break # pragma: no cover133 http_version = "HTTP/%s" % event.http_version.decode("latin-1", errors="ignore")134 return http_version, event.status_code, event.headers135136 async def _receive_response_data(
7 unmodified lines
144 if isinstance(event, h11.Data):145 yield bytes(event.data)146 else:147 assert isinstance(event, h11.EndOfMessage)148 break148 break # pragma: no cover149150 async def _receive_event(self, timeout: TimeoutConfig = None) -> H11Event:151 """152 Read a single `h11` event, reading more data from the network if needed.
8 unmodified lines
161 except OSError: # pragma: nocover162 data = b""163 self.h11_state.receive_data(data)164 else:165 break165 assert event is not h11.NEED_DATA166 break # pragma: no cover167 return event168169 async def response_closed(self) -> None:170 if (
18 unmodified lines
modified:httpx/config.py+1 added-1 removed
146 unmodified lines
147 context.set_ciphers(DEFAULT_CIPHERS)148149 if ssl.HAS_ALPN:150 context.set_alpn_protocols(["h2", "http/1.1"])151 if ssl.HAS_NPN:151 if ssl.HAS_NPN: # pragma: no cover152 context.set_npn_protocols(["h2", "http/1.1"])153154 return context155
107 unmodified lines
modified:.travis.yml-3 removed