diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-01-25 22:02:52 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-01-25 22:02:52 (GMT) |
commit | fd6aaa17d155e8e31e8a1b007d90dc85368d8c34 (patch) | |
tree | 7ddb32a0b6e085ca01a9a70ebf50eb9d3503ff4c /Lib/test/test_minidom.py | |
parent | 2ef85a729e8e28b4ee366c7fc0bd593a0d241e0b (diff) | |
download | cpython-fd6aaa17d155e8e31e8a1b007d90dc85368d8c34.zip cpython-fd6aaa17d155e8e31e8a1b007d90dc85368d8c34.tar.gz cpython-fd6aaa17d155e8e31e8a1b007d90dc85368d8c34.tar.bz2 |
Synchronize with PyXML's 1.33: Import missing modules.
Diffstat (limited to 'Lib/test/test_minidom.py')
-rw-r--r-- | Lib/test/test_minidom.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index c39c616..cb84987 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -2,14 +2,18 @@ import os import sys +import pickle import traceback - +from StringIO import StringIO from test.test_support import verbose import xml.dom +import xml.dom.minidom import xml.parsers.expat from xml.dom.minidom import parse, Node, Document, parseString +from xml.dom.minidom import getDOMImplementation + if __name__ == "__main__": base = sys.argv[0] @@ -24,7 +28,6 @@ def confirm(test, testname = "Test"): raise Exception def testParseFromFile(): - from StringIO import StringIO dom = parse(StringIO(open(tstfile).read())) dom.unlink() confirm(isinstance(dom,Document)) @@ -1329,7 +1332,7 @@ failed = [] try: Node.allnodes except AttributeError: - # We don't actually have the minidom from teh standard library, + # We don't actually have the minidom from the standard library, # but are picking up the PyXML version from site-packages. def check_allnodes(): pass |