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

Commit

Permalink
Ignore coverage of common context manager methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasa committed Jun 4, 2015
1 parent a7900d2 commit 7c2493f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hyper/common/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ def request(self, method, url, body=None, headers={}):

# The following two methods are the implementation of the context manager
# protocol.
def __enter__(self):
def __enter__(self): # pragma: no cover
return self

def __exit__(self, type, value, tb):
def __exit__(self, type, value, tb): # pragma: no cover
self.close()
return False # Never swallow exceptions.

Expand Down

0 comments on commit 7c2493f

Please sign in to comment.