File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ def buildTestSuite():
11
11
return suite
12
12
13
13
def main ():
14
+ # the following is temporary while the unit tests for parse errors are
15
+ # still in flux
16
+ if '-p' in sys .argv : # suppress check for parse errors
17
+ import test_parser
18
+ test_parser .checkParseErrors = False
19
+
14
20
unittest .TextTestRunner ().run (buildTestSuite ())
15
21
16
22
if __name__ == "__main__" :
Original file line number Diff line number Diff line change 24
24
print 'module ElementTree not found, skipping etree tests'
25
25
26
26
#Run the parse error checks
27
- #XXX - ideally want this to be a command line argument
28
27
checkParseErrors = True
29
28
30
29
def parseTestcase (testString ):
@@ -109,6 +108,13 @@ def buildTestSuite():
109
108
return unittest .TestLoader ().loadTestsFromTestCase (TestCase )
110
109
111
110
def main ():
111
+ # the following is temporary while the unit tests for parse errors are
112
+ # still in flux
113
+ if '-p' in sys .argv : # suppress check for parse errors
114
+ sys .argv .remove ('-p' )
115
+ global checkParseErrors
116
+ checkParseErrors = False
117
+
112
118
buildTestSuite ()
113
119
unittest .main ()
114
120
You can’t perform that action at this time.
0 commit comments