2002-06-26 03:20:10 +08:00
|
|
|
# Convenience test module to run all of the XML-related tests in the
|
|
|
|
# standard library.
|
|
|
|
|
|
|
|
import sys
|
2008-05-21 05:35:26 +08:00
|
|
|
import test.support
|
2002-06-26 23:16:16 +08:00
|
|
|
|
2008-05-21 05:35:26 +08:00
|
|
|
test.support.verbose = 0
|
2002-06-26 03:20:10 +08:00
|
|
|
|
|
|
|
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")
|
2005-12-13 02:54:55 +08:00
|
|
|
runtest("test.test_xml_etree")
|
2005-12-16 02:41:22 +08:00
|
|
|
runtest("test.test_xml_etree_c")
|
2002-06-26 03:20:10 +08:00
|
|
|
runtest("test.test_xmlrpc")
|