summaryrefslogtreecommitdiffstats
path: root/Lib/test/xmltests.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-06-25 19:20:10 (GMT)
committerFred Drake <fdrake@acm.org>2002-06-25 19:20:10 (GMT)
commit867de944b46b43af6b890dfdfe442f9d7b17a0b0 (patch)
tree62dd56273433bcfeb39cd08edec27371dde0edc5 /Lib/test/xmltests.py
parentc5e2792ab43faa2cdf3dc222e29ddf7bd44ec64a (diff)
downloadcpython-867de944b46b43af6b890dfdfe442f9d7b17a0b0.zip
cpython-867de944b46b43af6b890dfdfe442f9d7b17a0b0.tar.gz
cpython-867de944b46b43af6b890dfdfe442f9d7b17a0b0.tar.bz2
Add convenience module to run all the XML tests.
Diffstat (limited to 'Lib/test/xmltests.py')
-rw-r--r--Lib/test/xmltests.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/Lib/test/xmltests.py b/Lib/test/xmltests.py
new file mode 100644
index 0000000..70ca922
--- /dev/null
+++ b/Lib/test/xmltests.py
@@ -0,0 +1,16 @@
+# Convenience test module to run all of the XML-related tests in the
+# standard library.
+
+import sys
+
+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_xmllib")
+runtest("test.test_xmlrpc")