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
4a8f4078
Commit
4a8f4078
authored
Aug 10, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#18465: merge with 3.3.
parents
5305725f
98152031
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Lib/test/test_minidom.py
Lib/test/test_minidom.py
+6
-5
No files found.
Lib/test/test_minidom.py
View file @
4a8f4078
# test for xml.dom.minidom
import
pickle
from
test.support
import
verbose
,
run_unittest
,
findfile
from
test.support
import
run_unittest
,
findfile
import
unittest
import
xml.dom.minidom
...
...
@@ -310,9 +310,10 @@ class MinidomTest(unittest.TestCase):
self
.
confirm
(
len
(
child
.
attributes
)
==
0
and
child
.
getAttributeNode
(
"spam"
)
is
None
)
dom2
=
Document
()
child2
=
dom2
.
appendChild
(
dom
.
createElement
(
"foo"
))
self
.
assertRaises
(
xml
.
dom
.
NotFoundErr
,
child
.
removeAttributeNode
,
node
)
child2
=
dom2
.
appendChild
(
dom2
.
createElement
(
"foo"
))
node2
=
child2
.
getAttributeNode
(
"spam"
)
self
.
assertRaises
(
xml
.
dom
.
NotFoundErr
,
child2
.
removeAttributeNode
,
node2
)
dom
.
unlink
()
def
testHasAttribute
(
self
):
...
...
@@ -607,7 +608,7 @@ class MinidomTest(unittest.TestCase):
def
testHasChildNodes
(
self
):
dom
=
parseString
(
"<doc><foo/></doc>"
)
doc
=
dom
.
documentElement
self
.
assertTrue
(
do
m
.
hasChildNodes
())
self
.
assertTrue
(
do
c
.
hasChildNodes
())
dom2
=
parseString
(
"<doc/>"
)
doc2
=
dom2
.
documentElement
self
.
assertFalse
(
doc2
.
hasChildNodes
())
...
...
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