Omit assertion error handling from coverage report.

parent 7f056382
...@@ -14,8 +14,9 @@ class TestRewrite(TestCase): ...@@ -14,8 +14,9 @@ class TestRewrite(TestCase):
try: try:
for i, exp in enumerate(rewrite_chain[:-1]): for i, exp in enumerate(rewrite_chain[:-1]):
self.assertEqual(str(rewrite(exp)), str(rewrite_chain[i+1])) self.assertEqual(str(rewrite(exp)), str(rewrite_chain[i+1]))
except AssertionError: except AssertionError: # pragma: nocover
print exp, '->', rewrite_chain[i+1] print 'rewrite failed:', exp, '->', rewrite_chain[i+1]
print 'rewrite chain:', rewrite_chain
raise raise
def test_addition_rewrite(self): def test_addition_rewrite(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment