mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-29204: Emit warnings for already deprecated ElementTree features. (#773)
Element.getiterator() and the html parameter of XMLParser() were deprecated only in the documentation (since Python 3.2 and 3.4 correspondintly). Now using them emits a deprecation warning. * Don’t need check_warnings any more.
This commit is contained in:
parent
722a3af092
commit
762ec97ea6
6 changed files with 120 additions and 53 deletions
|
@ -8,7 +8,8 @@ import unittest
|
|||
cET = import_fresh_module('xml.etree.ElementTree',
|
||||
fresh=['_elementtree'])
|
||||
cET_alias = import_fresh_module('xml.etree.cElementTree',
|
||||
fresh=['_elementtree', 'xml.etree'])
|
||||
fresh=['_elementtree', 'xml.etree'],
|
||||
deprecated=True)
|
||||
|
||||
|
||||
@unittest.skipUnless(cET, 'requires _elementtree')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue