Message293652
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. |
|
Date |
User |
Action |
Args |
2017-05-14 15:38:54 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, scoder, benjamin.peterson, eli.bendersky |
2017-05-14 15:38:54 | serhiy.storchaka | set | messageid: <1494776334.02.0.442424547765.issue30365@psf.upfronthosting.co.za> |
2017-05-14 15:38:53 | serhiy.storchaka | link | issue30365 messages |
2017-05-14 15:38:53 | serhiy.storchaka | create | |
|