diff options
author | ptmcg <ptmcg@9bf210a0-9d2d-494c-87cf-cfb32e7dff7b> | 2016-07-26 19:16:59 +0000 |
---|---|---|
committer | ptmcg <ptmcg@9bf210a0-9d2d-494c-87cf-cfb32e7dff7b> | 2016-07-26 19:16:59 +0000 |
commit | 28e3d104defccdbc24fad411aded5d1fd062f535 (patch) | |
tree | 0f073cf7cf308f7bee3c85d392c0c58a98e3847f | |
parent | 4894cef022ca888d5b7962fcc99f996bdd0e6224 (diff) | |
download | pyparsing-28e3d104defccdbc24fad411aded5d1fd062f535.tar.gz |
Put test case classes back in order, as they are defined in the source module; makes test results evaluation easier
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@372 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
-rw-r--r-- | src/unitTests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unitTests.py b/src/unitTests.py index 0de3b97..09b34b2 100644 --- a/src/unitTests.py +++ b/src/unitTests.py @@ -3086,10 +3086,14 @@ class MiscellaneousParserTests(ParseTestCase): assert ''.join(grammar.parseString( "aba" )) == 'aba', "Packrat ABA failure!"
def makeTestSuite():
+ import inspect
suite = TestSuite()
suite.addTest( PyparsingTestInit() )
test_case_classes = ParseTestCase.__subclasses__()
+ # put classes in order as they are listed in the source code
+ test_case_classes.sort(key=lambda cls: inspect.getsourcelines(cls)[1])
+
test_case_classes.remove(PyparsingTestInit)
# test_case_classes.remove(ParseASMLTest)
test_case_classes.remove(EnablePackratParsing)
|