File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import os
44import sys
5+ import pickle
56import traceback
6-
7+ from StringIO import StringIO
78from test .test_support import verbose
89
910import xml .dom
11+ import xml .dom .minidom
1012import xml .parsers .expat
1113
1214from xml .dom .minidom import parse , Node , Document , parseString
15+ from xml .dom .minidom import getDOMImplementation
16+
1317
1418if __name__ == "__main__" :
1519 base = sys .argv [0 ]
@@ -24,7 +28,6 @@ def confirm(test, testname = "Test"):
2428 raise Exception
2529
2630def testParseFromFile ():
27- from StringIO import StringIO
2831 dom = parse (StringIO (open (tstfile ).read ()))
2932 dom .unlink ()
3033 confirm (isinstance (dom ,Document ))
@@ -1329,7 +1332,7 @@ def testPickledDocument():
13291332try :
13301333 Node .allnodes
13311334except AttributeError :
1332- # We don't actually have the minidom from teh standard library,
1335+ # We don't actually have the minidom from the standard library,
13331336 # but are picking up the PyXML version from site-packages.
13341337 def check_allnodes ():
13351338 pass
You can’t perform that action at this time.
0 commit comments