mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Synchronize with PyXML's 1.33: Import missing modules.
This commit is contained in:
parent
2ef85a729e
commit
fd6aaa17d1
1 changed files with 6 additions and 3 deletions
|
@ -2,14 +2,18 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import pickle
|
||||||
import traceback
|
import traceback
|
||||||
|
from StringIO import StringIO
|
||||||
from test.test_support import verbose
|
from test.test_support import verbose
|
||||||
|
|
||||||
import xml.dom
|
import xml.dom
|
||||||
|
import xml.dom.minidom
|
||||||
import xml.parsers.expat
|
import xml.parsers.expat
|
||||||
|
|
||||||
from xml.dom.minidom import parse, Node, Document, parseString
|
from xml.dom.minidom import parse, Node, Document, parseString
|
||||||
|
from xml.dom.minidom import getDOMImplementation
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
base = sys.argv[0]
|
base = sys.argv[0]
|
||||||
|
@ -24,7 +28,6 @@ def confirm(test, testname = "Test"):
|
||||||
raise Exception
|
raise Exception
|
||||||
|
|
||||||
def testParseFromFile():
|
def testParseFromFile():
|
||||||
from StringIO import StringIO
|
|
||||||
dom = parse(StringIO(open(tstfile).read()))
|
dom = parse(StringIO(open(tstfile).read()))
|
||||||
dom.unlink()
|
dom.unlink()
|
||||||
confirm(isinstance(dom,Document))
|
confirm(isinstance(dom,Document))
|
||||||
|
@ -1329,7 +1332,7 @@ failed = []
|
||||||
try:
|
try:
|
||||||
Node.allnodes
|
Node.allnodes
|
||||||
except AttributeError:
|
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.
|
# but are picking up the PyXML version from site-packages.
|
||||||
def check_allnodes():
|
def check_allnodes():
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue