Skip to content

Commit c2d6cfd

Browse files
committed
fix coverage for testsuite.py
1 parent 5d1907b commit c2d6cfd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/testsuite.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ def __call__(self, result):
109109
.__call__(result)
110110

111111
def test_pass(self):
112-
pass
112+
# it is expected not to be called.
113+
pass # pragma: no cover
113114

114115
def setUp(self):
115116
self.stream = StringIO()
@@ -218,7 +219,8 @@ def test_pass(self):
218219
# Finally check if we have a valid XML document or not.
219220
try:
220221
minidom.parseString(output)
221-
except Exception as e:
222+
except Exception as e: # pragma: no cover
223+
# note: we could remove the try/except, but it's more crude.
222224
self.fail(e)
223225

224226
def test_xmlrunner_unsafe_unicode(self):

0 commit comments

Comments
 (0)