Skip to content
Browse files

Ignore places where we're legitimately swallowing exceptions in test …

…coverage.
  • Loading branch information...
1 parent 7a1098c commit 2212a08368784d794a3b4a7bed4088fbf4755d2b @kgaughan committed Jun 10, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −0 .coveragerc
  2. +2 −2 dbkit.py
View
2 .coveragerc
@@ -5,12 +5,14 @@ branch = True
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
+ pragma: no cover
def __repr__
if self\.debug
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
+ pass
ignore_errors = True
View
4 dbkit.py
@@ -266,7 +266,7 @@ def __exit__(self, exc_type, _exc_value, _traceback):
# pylint: disable-msg=W0702
try:
self.conn.close()
- except:
+ except: # pragma: no cover
pass
self.conn = None
@@ -433,7 +433,7 @@ def finalise(self):
try:
self._allocated -= 1
conn.close()
- except:
+ except: # pragma: no cover
pass
self._cond.release()

0 comments on commit 2212a08

Please sign in to comment.
Something went wrong with that request. Please try again.