xmltests.py 499 Bytes
Newer Older
1 2 3 4
# Convenience test module to run all of the XML-related tests in the
# standard library.

import sys
5
import test.support
6

7
test.support.verbose = 0
8 9 10 11 12 13 14 15 16 17

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")
18
runtest("test.test_xml_dom_minicompat")
19
runtest("test.test_xml_etree")
Fredrik Lundh's avatar
Fredrik Lundh committed
20
runtest("test.test_xml_etree_c")
21
runtest("test.test_xmlrpc")