summaryrefslogtreecommitdiff
path: root/examples/lucene_grammar.py
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@austin.rr.com>2018-12-30 09:32:30 -0600
committerPaul McGuire <ptmcg@austin.rr.com>2018-12-30 09:32:30 -0600
commit3d1ada6a3379e48f8da34971da8be22be39324e5 (patch)
treeba46c1aa082574ee8b198389db76dce1c3afdec6 /examples/lucene_grammar.py
parentc3bb1856f94fe393d209d3dd95af718526497a04 (diff)
downloadpyparsing-git-3d1ada6a3379e48f8da34971da8be22be39324e5.tar.gz
Update Travis-CI scripts to include examples; fix bug in runTests if postParse function returns None (or any non-str value)
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")