Skip to content
Myr

Exclude decoder's flush try..except from coverage

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

authored by Yeray Diaz Diaz · committed by Yeray Diaz Diaz · parent 87cab4c · Browse files · 1 file+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

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:httpcore/decoders.py+3 added-3 removed
51 unmodified lines
5253 def flush(self) -> bytes:54 try:55 return self.decompressor.flush()56 except zlib.error as exc:56 except zlib.error as exc: # pragma: nocover57 raise httpcore.exceptions.DecodingError from exc585960class GZipDecoder(Decoder):
14 unmodified lines
7576 def flush(self) -> bytes:77 try:78 return self.decompressor.flush()79 except zlib.error as exc:79 except zlib.error as exc: # pragma: nocover80 raise httpcore.exceptions.DecodingError from exc818283class BrotliDecoder(Decoder):
18 unmodified lines
102 def flush(self) -> bytes:103 try:104 self.decompressor.finish()105 return b""106 except brotli.Error as exc:106 except brotli.Error as exc: # pragma: nocover107 raise httpcore.exceptions.DecodingError from exc108109110class MultiDecoder(Decoder):
39 unmodified lines