summaryrefslogtreecommitdiff
path: root/unitTests.py
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2018-10-30 16:57:42 -0500
committerptmcg <ptmcg@austin.rr.com>2018-10-30 16:57:42 -0500
commit41bb3b91e2f1e552fc1afa2373e21028035471aa (patch)
tree6ac8572e7cba859d8cd88430b8f839b96aa3bac1 /unitTests.py
parent6c8840a8553eaef161b7d002c00c76dc61644f0d (diff)
downloadpyparsing-git-41bb3b91e2f1e552fc1afa2373e21028035471aa.tar.gz
Clean up old cruft from unit tests
Diffstat (limited to 'unitTests.py')
-rw-r--r--unitTests.py32
1 files changed, 2 insertions, 30 deletions
diff --git a/unitTests.py b/unitTests.py
index 83dd08c..184a8ac 100644
--- a/unitTests.py
+++ b/unitTests.py
@@ -8,12 +8,9 @@
#
#
from unittest import TestCase, TestSuite, TextTestRunner
-import unittest
import datetime
-
from pyparsing import ParseException
import pyparsing as pp
-#~ import HTMLTestRunner
import sys
import pdb
@@ -3872,18 +3869,8 @@ def makeTestSuiteTemp(classes):
suite.addTest( cls() )
return suite
-console = False
-console = True
-
-#~ from line_profiler import LineProfiler
-#~ from pyparsing import ParseResults
-#~ lp = LineProfiler(ParseResults.__setitem__)
-lp = None
+if __name__ == '__main__':
-#~ if __name__ == '__main__':
- #~ unittest.main()
-if console:
- #~ # console mode
testRunner = TextTestRunner()
# run specific tests by including them in this list, otherwise
@@ -3895,19 +3882,4 @@ if console:
testRunner.run( makeTestSuite() )
else:
BUFFER_OUTPUT = False
- if lp is None:
- testRunner.run( makeTestSuiteTemp(testclasses) )
- else:
- lp.run("testRunner.run( makeTestSuite(%s) )" % testclass.__name__)
-else:
- # HTML mode
- outfile = "testResults.html"
- outstream = open(outfile,"w")
- testRunner = HTMLTestRunner.HTMLTestRunner( stream=outstream )
- testRunner.run( makeTestSuite() )
- outstream.close()
-
- import os
- os.system(r'"C:\Program Files\Internet Explorer\iexplore.exe" file://' + outfile)
-
-#~ lp.print_stats()
+ testRunner.run(makeTestSuiteTemp(testclasses))