Commit 09be616d authored by Vincent Pelletier's avatar Vincent Pelletier

test: Fix a few coverage pragma.

parent 3369b98b
Pipeline #10044 failed with stage
in 0 seconds
...@@ -303,7 +303,7 @@ def print_buffer_on_error(func): ...@@ -303,7 +303,7 @@ def print_buffer_on_error(func):
""" """
try: try:
return func(self, *args, **kw) return func(self, *args, **kw)
except Exception: # pragma : no cover except Exception: # pragma: no cover
sys.stdout.write(utils.toBytes(os.linesep)) sys.stdout.write(utils.toBytes(os.linesep))
sys.stdout.write(self.caucase_test_output.getvalue()) sys.stdout.write(self.caucase_test_output.getvalue())
raise raise
...@@ -2321,7 +2321,7 @@ class CaucaseTest(unittest.TestCase): ...@@ -2321,7 +2321,7 @@ class CaucaseTest(unittest.TestCase):
user2_new_key_path, user2_new_key_path,
), ),
) )
except SystemExit as e: except SystemExit as e: # pragma: no cover
if e.code: if e.code:
raise raise
......
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