summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-01-25 22:02:52 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-01-25 22:02:52 (GMT)
commitfd6aaa17d155e8e31e8a1b007d90dc85368d8c34 (patch)
tree7ddb32a0b6e085ca01a9a70ebf50eb9d3503ff4c /Lib/test
parent2ef85a729e8e28b4ee366c7fc0bd593a0d241e0b (diff)
downloadcpython-fd6aaa17d155e8e31e8a1b007d90dc85368d8c34.zip
cpython-fd6aaa17d155e8e31e8a1b007d90dc85368d8c34.tar.gz
cpython-fd6aaa17d155e8e31e8a1b007d90dc85368d8c34.tar.bz2
Synchronize with PyXML's 1.33: Import missing modules.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_minidom.py9
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