Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
89c528b0
Commit
89c528b0
authored
Sep 19, 2000
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't print specific Node instances unless running verbosely.
Closes Bug #114775.
parent
02c70827
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
Lib/test/output/test_minidom
Lib/test/output/test_minidom
+2
-2
Lib/test/test_minidom.py
Lib/test/test_minidom.py
+8
-2
No files found.
Lib/test/output/test_minidom
View file @
89c528b0
...
...
@@ -80,10 +80,10 @@ Test Succeeded testParseAttributeNamespaces
Test Succeeded testParseAttributes
Test Succeeded testParseElement
Test Succeeded testParseElementNamespaces
<xml.dom.minidom.Document instance at 0xa104c8c>
Passed Test
Test Succeeded testParseFromFile
Garbage left over:
[('168820100<class xml.dom.minidom.Element at 0xa0cc58c>', "{'childNodes': []}"), ('168926628<class xml.dom.minidom.Text at 0xa0ccfac>', "{'childNodes': []}"), ('168722260<class xml.dom.minidom.Text at 0xa0ccfac>', "{'childNodes': []}"), ('168655020<class xml.dom.minidom.Text at 0xa0ccfac>', "{'childNodes': []}"), ('168650868<class xml.dom.minidom.Text at 0xa0ccfac>', "{'childNodes': []}"), ('168663308<class xml.dom.minidom.Text at 0xa0ccfac>', "{'childNodes': []}"), ('168846892<class xml.dom.minidom.Text at 0xa0ccfac>', "{'childNodes': []}"), ('169039972<class xml.dom.minidom.Text at 0xa0ccfac>', "{'childNodes': []}"), ('168666508<class xml.dom.minidom.Element at 0xa0cc58c>', "{'childNodes': []}"), ('168730780<class xml.dom.minidom.Element at 0xa0cc58c>', "{'childNodes': []}")]
258
Test Succeeded testParseProcessingInstructions
Test Succeeded testParseString
Test Succeeded testProcessingInstruction
...
...
Lib/test/test_minidom.py
View file @
89c528b0
...
...
@@ -5,6 +5,7 @@ from xml.dom.minidom import parse, Node, Document, parseString
import
os.path
import
sys
import
traceback
from
test_support
import
verbose
if
__name__
==
"__main__"
:
base
=
sys
.
argv
[
0
]
...
...
@@ -25,7 +26,7 @@ Node._debug=1
def
testParseFromFile
():
from
StringIO
import
StringIO
dom
=
parse
(
StringIO
(
open
(
tstfile
).
read
()
)
)
print
dom
confirm
(
isinstance
(
dom
,
Document
))
def
testGetElementsByTagName
(
):
dom
=
parse
(
tstfile
)
...
...
@@ -335,7 +336,12 @@ for name in names:
print
"Test Succeeded"
,
name
if
len
(
Node
.
allnodes
):
print
"Garbage left over:"
print
Node
.
allnodes
.
items
()[
0
:
10
]
if
verbose
:
print
Node
.
allnodes
.
items
()[
0
:
10
]
else
:
# Don't print specific nodes if repeatable results
# are needed
print
len
(
Node
.
allnodes
)
Node
.
allnodes
=
{}
except
Exception
,
e
:
works
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment