summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/unitTests.py4
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)