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

Commit

Permalink
fix: fix coverage
Browse files Browse the repository at this point in the history
issue #802
  • Loading branch information
pjenvey committed Feb 10, 2017
1 parent fe90445 commit 0bca3d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion autopush/memusage.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def memusage():
def trap_err(func, *args, **kwargs):
try:
return func(*args, **kwargs)
except Exception as e:
except Exception as e: # pragma: nocover
# include both __str/repr__, sometimes one's useless
buf.writelines([func.__name__, ': ', repr(e), ': ', str(e)])

Expand Down
3 changes: 1 addition & 2 deletions autopush/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2057,8 +2057,7 @@ def test_memusage(self):
ok_('rusage' in body)
ok_('Logger' in body)
if find_executable('pmap'):
assert 'RSS' in body, body
ok_('RSS' in body) # pmap -X output
ok_('RSS' in body) # pmap -x output
if hasattr(sys, 'pypy_version_info'):
ok_('size: ' in body)
ok_('rpy_unicode' in body)
Expand Down
2 changes: 1 addition & 1 deletion autopush/web/health.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class MemUsageHandler(BaseWebHandler):

def authenticate_peer_cert(self):
"""skip authentication checks"""
pass
pass # pragma: nocover

def get(self, *args, **kwargs):
"""HTTP Get
Expand Down

0 comments on commit 0bca3d1

Please sign in to comment.