Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[2.7] bpo-30365: Backport warnings and fix bugs in ElementTree.#1581

Merged
serhiy-storchaka merged 2 commits into
python:2.7python/cpython:2.7from
serhiy-storchaka:etree-py3k-warningsserhiy-storchaka/cpython:etree-py3k-warningsCopy head branch name to clipboard
May 17, 2017
Merged

[2.7] bpo-30365: Backport warnings and fix bugs in ElementTree.#1581
serhiy-storchaka merged 2 commits into
python:2.7python/cpython:2.7from
serhiy-storchaka:etree-py3k-warningsserhiy-storchaka/cpython:etree-py3k-warningsCopy head branch name to clipboard

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Running Python with the -3 option now emits deprecation warnings for
getchildren() and getiterator() methods of the Element class in the
xml.etree.cElementTree module and when pass the html argument to
xml.etree.ElementTree.XMLParser().

Fixed a deprecation warning about the doctype() method of the
xml.etree.ElementTree.XMLParser class. Now it is emitted only when
define the doctype() method in the subclass of XMLParser.

Fixed a bug in the test_bug_200708_close test method. An EchoTarget
instance was incorrectly passed to XMLParser() as the html argument and
silently ignored.

Tests no longer failed when use the -m option for running only selected
test methods. Checking warnings now is more specific, warnings are
expected only when use deprecated features.

Running Python with the -3 option now emits deprecation warnings for
getchildren() and getiterator() methods of the Element class in the
xml.etree.cElementTree module and when pass the html argument to
xml.etree.ElementTree.XMLParser().

Fixed a deprecation warning about the doctype() method of the
xml.etree.ElementTree.XMLParser class.  Now it is emitted only when
define the doctype() method in the subclass of XMLParser.

Fixed a bug in the test_bug_200708_close test method.  An EchoTarget
instance was incorrectly passed to XMLParser() as the html argument and
silently ignored.

Tests no longer failed when use the -m option for running only selected
test methods. Checking warnings now is more specific, warnings are
expected only when use deprecated features.
@serhiy-storchaka serhiy-storchaka added the type-bug An unexpected behavior, bug, or error label May 14, 2017
@serhiy-storchaka serhiy-storchaka merged commit 09b5247 into python:2.7 May 17, 2017
@serhiy-storchaka serhiy-storchaka deleted the etree-py3k-warnings branch May 17, 2017 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.