Fred Drake | 867de94 | 2002-06-25 19:20:10 +0000 | [diff] [blame] | 1 | # Convenience test module to run all of the XML-related tests in the |
| 2 | # standard library. |
| 3 | |
| 4 | import sys |
Benjamin Peterson | ee8712c | 2008-05-20 21:35:26 +0000 | [diff] [blame] | 5 | import test.support |
Fred Drake | 3a159a8 | 2002-06-26 15:16:16 +0000 | [diff] [blame] | 6 | |
Benjamin Peterson | ee8712c | 2008-05-20 21:35:26 +0000 | [diff] [blame] | 7 | test.support.verbose = 0 |
Fred Drake | 867de94 | 2002-06-25 19:20:10 +0000 | [diff] [blame] | 8 | |
| 9 | def runtest(name): |
| 10 | __import__(name) |
| 11 | module = sys.modules[name] |
| 12 | if hasattr(module, "test_main"): |
| 13 | module.test_main() |
| 14 | |
| 15 | runtest("test.test_minidom") |
| 16 | runtest("test.test_pyexpat") |
| 17 | runtest("test.test_sax") |
Fredrik Lundh | 7e0aef0 | 2005-12-12 18:54:55 +0000 | [diff] [blame] | 18 | runtest("test.test_xml_etree") |
Fredrik Lundh | 9235ea4 | 2005-12-15 18:41:22 +0000 | [diff] [blame] | 19 | runtest("test.test_xml_etree_c") |
Fred Drake | 867de94 | 2002-06-25 19:20:10 +0000 | [diff] [blame] | 20 | runtest("test.test_xmlrpc") |