1 | n/a | # Convenience test module to run all of the XML-related tests in the |
---|
2 | n/a | # standard library. |
---|
3 | n/a | |
---|
4 | n/a | import sys |
---|
5 | n/a | import test.support |
---|
6 | n/a | |
---|
7 | n/a | test.support.verbose = 0 |
---|
8 | n/a | |
---|
9 | n/a | def runtest(name): |
---|
10 | n/a | __import__(name) |
---|
11 | n/a | module = sys.modules[name] |
---|
12 | n/a | if hasattr(module, "test_main"): |
---|
13 | n/a | module.test_main() |
---|
14 | n/a | |
---|
15 | n/a | runtest("test.test_minidom") |
---|
16 | n/a | runtest("test.test_pyexpat") |
---|
17 | n/a | runtest("test.test_sax") |
---|
18 | n/a | runtest("test.test_xml_dom_minicompat") |
---|
19 | n/a | runtest("test.test_xml_etree") |
---|
20 | n/a | runtest("test.test_xml_etree_c") |
---|
21 | n/a | runtest("test.test_xmlrpc") |
---|