mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-06-22 23:19:25 -04:00
tests: Exclude lines from coverage
Exclude things like "raise NotImplementedError" and compiler bug handlers.
This commit is contained in:
parent
85150d397b
commit
1897478480
4 changed files with 15 additions and 12 deletions
|
@ -32,7 +32,7 @@ class TestTokenizer(unittest.TestCase):
|
|||
for token, (type, token_str) in zip(tokens, expect):
|
||||
self.assertEqual(token.type, type)
|
||||
self.assertEqual(str(token), token_str)
|
||||
except PrintableError as e:
|
||||
except PrintableError as e: # pragma: no cover
|
||||
e.pretty_print("<test input>", string)
|
||||
raise e
|
||||
|
||||
|
@ -71,6 +71,3 @@ class TestTokenizer(unittest.TestCase):
|
|||
(TokenType.EOF, ""),
|
||||
])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue