summaryrefslogtreecommitdiff
path: root/examples/lucene_grammar.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/lucene_grammar.py')
-rw-r--r--examples/lucene_grammar.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/lucene_grammar.py b/examples/lucene_grammar.py
index 0cd7e0d..2791b7c 100644
--- a/examples/lucene_grammar.py
+++ b/examples/lucene_grammar.py
@@ -317,3 +317,6 @@ success1, _ = expression.runTests(tests)
success2, _ = expression.runTests(failtests, failureTests=True)
print(("FAIL", "OK")[success1 and success2])
+
+if not (success1 and success2):
+ raise Exception("failure in lucene grammar parser, check output")