[ZPT] CVS: Packages/TAL/tests - test_xmlparser.py:1.4
Fred Drake Jr
fdrake@acm.org
Thu, 18 Oct 2001 12:18:19 -0400
Update of /cvs-repository/Packages/TAL/tests
In directory cvs.zope.org:/tmp/cvs-serv27277
Modified Files:
test_xmlparser.py
Log Message:
Skip these tests if utils.skipxml is set, unless this was run as a script.
=== Packages/TAL/tests/test_xmlparser.py 1.3 => 1.4 ===
# 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)