summaryrefslogtreecommitdiff
path: root/lib/python2.7/test/xmltests.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python2.7/test/xmltests.py')
-rw-r--r--lib/python2.7/test/xmltests.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/python2.7/test/xmltests.py b/lib/python2.7/test/xmltests.py
new file mode 100644
index 0000000..d203709
--- /dev/null
+++ b/lib/python2.7/test/xmltests.py
@@ -0,0 +1,21 @@
+# Convenience test module to run all of the XML-related tests in the
+# standard library.
+
+import sys
+import test.test_support
+
+test.test_support.verbose = 0
+
+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_xml_etree")
+runtest("test.test_xml_etree_c")
+runtest("test.test_xmllib")
+runtest("test.test_xmlrpc")