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

Commit 7c2493f

Browse files
committed
Ignore coverage of common context manager methods
1 parent a7900d2 commit 7c2493f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hyper/common/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ def request(self, method, url, body=None, headers={}):
109109

110110
# The following two methods are the implementation of the context manager
111111
# protocol.
112-
def __enter__(self):
112+
def __enter__(self): # pragma: no cover
113113
return self
114114

115-
def __exit__(self, type, value, tb):
115+
def __exit__(self, type, value, tb): # pragma: no cover
116116
self.close()
117117
return False # Never swallow exceptions.
118118

0 commit comments

Comments
 (0)