Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fd6aaa1

Browse files
committed
Synchronize with PyXML's 1.33: Import missing modules.
1 parent 2ef85a7 commit fd6aaa1

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Lib/test/test_minidom.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22

33
import os
44
import sys
5+
import pickle
56
import traceback
6-
7+
from StringIO import StringIO
78
from test.test_support import verbose
89

910
import xml.dom
11+
import xml.dom.minidom
1012
import xml.parsers.expat
1113

1214
from xml.dom.minidom import parse, Node, Document, parseString
15+
from xml.dom.minidom import getDOMImplementation
16+
1317

1418
if __name__ == "__main__":
1519
base = sys.argv[0]
@@ -24,7 +28,6 @@ def confirm(test, testname = "Test"):
2428
raise Exception
2529

2630
def 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():
13291332
try:
13301333
Node.allnodes
13311334
except 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

0 commit comments

Comments
 (0)