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
81b01802
Commit
81b01802
authored
May 09, 2011
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 11164: Remove obsolete allnodes test from minidom test.
Patch by Arfrever Frehtes Taifersar Arahesis.
parent
315ed7be
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
20 deletions
+2
-20
Lib/test/test_minidom.py
Lib/test/test_minidom.py
+0
-20
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_minidom.py
View file @
81b01802
...
@@ -46,26 +46,6 @@ def create_doc_with_doctype():
...
@@ -46,26 +46,6 @@ def create_doc_with_doctype():
return
doc
return
doc
class
MinidomTest
(
unittest
.
TestCase
):
class
MinidomTest
(
unittest
.
TestCase
):
def
tearDown
(
self
):
try
:
Node
.
allnodes
except
AttributeError
:
# We don't actually have the minidom from the standard library,
# but are picking up the PyXML version from site-packages.
pass
else
:
self
.
confirm
(
len
(
Node
.
allnodes
)
==
0
,
"assertion: len(Node.allnodes) == 0"
)
if
len
(
Node
.
allnodes
):
print
"Garbage left over:"
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
=
{}
def
confirm
(
self
,
test
,
testname
=
"Test"
):
def
confirm
(
self
,
test
,
testname
=
"Test"
):
self
.
assertTrue
(
test
,
testname
)
self
.
assertTrue
(
test
,
testname
)
...
...
Misc/NEWS
View file @
81b01802
...
@@ -77,6 +77,8 @@ Core and Builtins
...
@@ -77,6 +77,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #11164: Remove obsolete allnodes test from minidom test.
- Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch
- Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch
by Kasun Herath.
by Kasun Herath.
...
...
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