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
3277da0f
Commit
3277da0f
authored
Dec 14, 2000
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the test suite to cover more ground.
This closes patch #102477.
parent
f7cf40d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
Lib/test/output/test_minidom
Lib/test/output/test_minidom
+1
-0
Lib/test/test_minidom.py
Lib/test/test_minidom.py
+8
-0
No files found.
Lib/test/output/test_minidom
View file @
3277da0f
...
...
@@ -127,6 +127,7 @@ Test Succeeded testNonZero
Passed assertion: len(Node.allnodes) == 0
Passed testNormalize -- preparation
Passed testNormalize -- result
Passed testNormalize -- single empty node removed
Test Succeeded testNormalize
Passed assertion: len(Node.allnodes) == 0
Passed testParents
...
...
Lib/test/test_minidom.py
View file @
3277da0f
...
...
@@ -397,6 +397,14 @@ def testNormalize():
,
"testNormalize -- result"
)
doc
.
unlink
()
doc
=
parseString
(
"<doc/>"
)
root
=
doc
.
documentElement
root
.
appendChild
(
doc
.
createTextNode
(
""
))
doc
.
normalize
()
confirm
(
len
(
root
.
childNodes
)
==
0
,
"testNormalize -- single empty node removed"
)
doc
.
unlink
()
def
testSiblings
():
doc
=
parseString
(
"<doc><?pi?>text?<elm/></doc>"
)
root
=
doc
.
documentElement
...
...
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