Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 7b02d32

Browse files
committed
Exclude httpie hacks from code coverage.
1 parent a3393c5 commit 7b02d32

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hyper/contrib.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ def build_response(self, request, resp):
109109
#
110110
# We fake this out. Most of this exists on our response object already,
111111
# and the rest can be faked.
112-
class FakeOriginalResponse(object):
112+
#
113+
# All of this exists for httpie, which I don't have any tests for,
114+
# so I'm not going to bother adding test coverage for it.
115+
class FakeOriginalResponse(object): # pragma: no cover
113116
def __init__(self, headers):
114117
self._headers = headers
115118

@@ -126,7 +129,7 @@ def get_all(self, name, default=None):
126129
return values
127130

128131

129-
response.raw._original_response = orig = FakeOriginalResponse(resp.getheaders())
132+
response.raw._original_response = orig = FakeOriginalResponse(None)
130133
orig.version = 20
131134
orig.status = resp.status
132135
orig.reason = resp.reason

0 commit comments

Comments
 (0)