diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2019-04-01 22:52:44 -0500 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2019-04-01 22:52:44 -0500 |
commit | 2cedb21cc3eff2a57f0d781dc38e679589664d3a (patch) | |
tree | ae7dabb8564b5ac719f2566660a396378a25f357 /unitTests.py | |
parent | bf3e1b95adfbdf81bd24ec193ca901f63d260cbd (diff) | |
download | pyparsing-git-2cedb21cc3eff2a57f0d781dc38e679589664d3a.tar.gz |
General code cleanup; have unit test module exit(0 or 1) depending on test success, to trigger CI pass/fail; fix bug that crept into withAttribute; minor performance tweaks in Regex and Word
Diffstat (limited to 'unitTests.py')
-rw-r--r-- | unitTests.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/unitTests.py b/unitTests.py index 9a44193..baae01d 100644 --- a/unitTests.py +++ b/unitTests.py @@ -2346,7 +2346,7 @@ class WithAttributeParseActionTest(ParseTestCase): <a B="x">3</a> <a b="X">4</a> <a b="y">5</a> - <a class="boo">8</a> + <a class="boo">8</ a> """ tagStart, tagEnd = makeHTMLTags("a") @@ -4308,7 +4308,9 @@ if __name__ == '__main__': ] if not testclasses: - testRunner.run(makeTestSuite()) + result = testRunner.run(makeTestSuite()) else: BUFFER_OUTPUT = False - testRunner.run(makeTestSuiteTemp(testclasses)) + result = testRunner.run(makeTestSuiteTemp(testclasses)) + + exit(0 if result.wasSuccessful() else 1) |