Add convenience module to run all the XML tests.

This commit is contained in:
Fred Drake 2002-06-25 19:20:10 +00:00
parent c5e2792ab4
commit 867de944b4
2 changed files with 395 additions and 0 deletions

16
Lib/test/xmltests.py Normal file
View file

@ -0,0 +1,16 @@
# Convenience test module to run all of the XML-related tests in the
# standard library.
import sys
def runtest(name):
__import__(name)
module = sys.modules[name]
if hasattr(module, "test_main"):
module.test_main()
runtest("test.test_minidom")
runtest("test.test_pyexpat")
runtest("test.test_sax")
runtest("test.test_xmllib")
runtest("test.test_xmlrpc")