mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Add convenience module to run all the XML tests.
This commit is contained in:
parent
c5e2792ab4
commit
867de944b4
2 changed files with 395 additions and 0 deletions
16
Lib/test/xmltests.py
Normal file
16
Lib/test/xmltests.py
Normal file
|
@ -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")
|
Loading…
Add table
Add a link
Reference in a new issue