summaryrefslogtreecommitdiff
path: root/unitTests.py
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@austin.rr.com>2019-04-07 07:42:20 -0500
committerPaul McGuire <ptmcg@austin.rr.com>2019-04-07 07:42:20 -0500
commit76b3af7f25d0f25d4eb7f0849a23e22b5b2a0297 (patch)
tree53ae14557c3bbbe7545983ee7414f442f2fe4d07 /unitTests.py
parenta2439508ba5c94546db98593cfa676de9b59babe (diff)
downloadpyparsing-git-76b3af7f25d0f25d4eb7f0849a23e22b5b2a0297.tar.gz
Improved support for "python setup.py test"
Diffstat (limited to 'unitTests.py')
-rw-r--r--unitTests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/unitTests.py b/unitTests.py
index 908266e..5db9ffe 100644
--- a/unitTests.py
+++ b/unitTests.py
@@ -4327,6 +4327,10 @@ def makeTestSuiteTemp(classes):
suite.addTests(cls() for cls in classes)
return suite
+# runnable from setup.py using "python setup.py test -s unitTests.suite"
+suite = makeTestSuite()
+
+
if __name__ == '__main__':
testRunner = TextTestRunner()
@@ -4337,7 +4341,7 @@ if __name__ == '__main__':
]
if not testclasses:
- result = testRunner.run(makeTestSuite())
+ result = testRunner.run(suite)
else:
BUFFER_OUTPUT = False
result = testRunner.run(makeTestSuiteTemp(testclasses))