This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients benjamin.peterson, eli.bendersky, scoder, serhiy.storchaka
Date 2017-05-14.15:38:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494776334.02.0.442424547765.issue30365@psf.upfronthosting.co.za>
In-reply-to
Content
Proposed patch add warnings in ElementTree and cElementTree modules (backports issue29204) when run Python with the -3 option and fixes several bugs in the etree package and its tests:

The deprecation warning about the doctype() method was emitted when use xml.etree.ElementTree.XMLParser. Now it emitted only when use a subclass of XMLParser with defined doctype() method, as intended.

In the test_bug_200708_close test an EchoTarget instance was incorrectly passed to XMLParser() as the html argument and silently ignored. Now it is passed as the target argument.

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.
History
Date User Action Args
2017-05-14 15:38:54serhiy.storchakasetrecipients: + serhiy.storchaka, scoder, benjamin.peterson, eli.bendersky
2017-05-14 15:38:54serhiy.storchakasetmessageid: <1494776334.02.0.442424547765.issue30365@psf.upfronthosting.co.za>
2017-05-14 15:38:53serhiy.storchakalinkissue30365 messages
2017-05-14 15:38:53serhiy.storchakacreate