mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Emit deprecation warnings
This commit is contained in:
parent
8fab7c1706
commit
94db929f74
9 changed files with 102 additions and 2 deletions
|
@ -54,6 +54,14 @@ class TestSamples(unittest.TestCase):
|
|||
tokens = tokenizer.tokenize(blueprint)
|
||||
ast, errors, warnings = parser.parse(tokens)
|
||||
|
||||
# Ignore deprecation warnings because some of the things we're testing
|
||||
# are deprecated
|
||||
warnings = [
|
||||
warning
|
||||
for warning in warnings
|
||||
if "is deprecated" not in warning.message
|
||||
]
|
||||
|
||||
if errors:
|
||||
raise errors
|
||||
if len(warnings):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue