Commit 6750ac25 authored by Fred Drake's avatar Fred Drake

Skip these tests if utils.skipxml is set, unless this was run as a script.

parent 4696e550
......@@ -239,12 +239,13 @@ text
# Support for the Zope regression test framework:
def test_suite():
def test_suite(skipxml=utils.skipxml):
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(XMLParserTestCase, "check_"))
if not skipxml:
suite.addTest(unittest.makeSuite(XMLParserTestCase, "check_"))
return suite
if __name__ == "__main__":
errs = utils.run_suite(test_suite())
errs = utils.run_suite(test_suite(skipxml=0))
sys.exit(errs and 1 or 0)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment