tests: Exclude lines from coverage

Exclude things like "raise NotImplementedError" and compiler bug
handlers.
This commit is contained in:
James Westman 2022-01-13 00:02:41 -06:00
parent 85150d397b
commit 1897478480
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
4 changed files with 15 additions and 12 deletions

View file

@ -121,7 +121,7 @@ def assert_true(truth: bool, message:str=None):
raise CompilerBugError(message)
def report_bug():
def report_bug(): # pragma: no cover
""" Report an error and ask people to report it. """
print(traceback.format_exc())