summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xml_etree.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31170: Write unit test for Expat 2.2.4 UTF-8 bug (#3570) (#3745)Victor Stinner2017-09-251-0/+31
| | | | | Non-regression tests for the Expat 2.2.3 UTF-8 decoder bug. (cherry picked from commit e6d9fcbb8d0c325e57df08ae8781aafedb71eca2)
* [2.7] bpo-30442: Skips refcount test in test_xml_etree under coverage ↵Miss Islington (bot)2017-09-131-0/+1
| | | | | (GH-1767) (#3549) (cherry picked from commit 1de4705d00168afa8c5b6741af02e21fc609af58)
* bpo-30365: Backport warnings and fix bugs in ElementTree. (#1581)Serhiy Storchaka2017-05-171-49/+58
| | | | | | | | | | | | | | | | | | 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.
* bpo-30027: Fix Py3k warnings in test_xml_etree. (#1065)Serhiy Storchaka2017-04-121-3/+4
|
* bpo-27863: Fixed multiple crashes in ElementTree. (#765) (#903) (#963)Serhiy Storchaka2017-04-021-0/+77
| | | | | (cherry picked from commit 576def096ec7b64814e038f03290031f172886c3) (cherry picked from commit a6b4e1902250d6f28ca6d083ce1c8d7e9b91974b)
* bpo-15083: Convert ElementTree doctests to unittests. (#906)Serhiy Storchaka2017-04-021-1685/+2356
|
* Issue #19815: Fix segfault when parsing empty namespace declaration.Eli Bendersky2013-11-281-2/+9
| | | | Based on patches by Christian Heimes and Vajrasky Kok
* Issue #13612: Fix a buffer overflow in case of a multi-byte encoding.Eli Bendersky2013-08-041-0/+6
| | | | This is a belated backport of f7b47fb30169; Patch by Serhiy Storchaka.
* Issue #18347: ElementTree's html serializer now preserves the case of ↵Christian Heimes2013-07-041-0/+10
| | | | closing tags.
* #15970: xml.etree.ElementTree now serializes correctly the empty HTML ↵Ezio Melotti2012-09-191-0/+20
| | | | elements "meta" and "param".
* Fix merge in changeset e1dde980a92c.Florent Xicluna2011-11-011-1/+1
|
* Issue #2892: preserve iterparse events in case of SyntaxErrorFlorent Xicluna2011-11-011-0/+1
|
* Merged revisions 85459-85465 via svnmerge fromGeorg Brandl2010-11-261-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85459 | georg.brandl | 2010-10-14 09:23:01 +0200 (Do, 14 Okt 2010) | 1 line #9964: Fix failure of test_dis under -OO. ........ r85460 | georg.brandl | 2010-10-14 09:24:28 +0200 (Do, 14 Okt 2010) | 1 line #9964: fix running test_import under -O or -OO. ........ r85461 | georg.brandl | 2010-10-14 09:29:08 +0200 (Do, 14 Okt 2010) | 1 line #9964: fix lib2to3 fixer fix_operator when running under -OO. ........ r85462 | georg.brandl | 2010-10-14 09:32:52 +0200 (Do, 14 Okt 2010) | 1 line #9964: fix running test_xml_etree under -OO. ........ r85463 | georg.brandl | 2010-10-14 09:34:56 +0200 (Do, 14 Okt 2010) | 1 line Better check for "any optimize option given". ........ r85464 | georg.brandl | 2010-10-14 09:42:27 +0200 (Do, 14 Okt 2010) | 1 line #9964: fix running test_compileall under -O and -OO. ........ r85465 | georg.brandl | 2010-10-14 10:08:56 +0200 (Do, 14 Okt 2010) | 1 line #9964: fix running test_cmd_line_script under -O and -OO. ........
* Merged revisions 86348 via svnmerge fromSenthil Kumaran2010-11-091-0/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86348 | senthil.kumaran | 2010-11-09 10:36:59 +0800 (Tue, 09 Nov 2010) | 3 lines Fix Issue10205 - XML QName error when different tags have same QName. ........
* Merged revisions 85497 via svnmerge fromAntoine Pitrou2010-10-141-7/+16
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85497 | antoine.pitrou | 2010-10-14 23:15:17 +0200 (jeu., 14 oct. 2010) | 3 lines Explicitly close some files (from issue #10093) ........
* Merged revisions 83864 via svnmerge fromFlorent Xicluna2010-08-091-0/+18
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83864 | florent.xicluna | 2010-08-09 01:08:41 +0200 (lun., 09 août 2010) | 2 lines Fix xml.etree.ElementInclude to include the tail of the current node. Issue #6231 ........
* Fix test for xml.etree when using a non-ascii path. And use check_warnings ↵Florent Xicluna2010-03-311-16/+26
| | | | instead of catch_warnings.
* Do not hardcode Expat version. It's possible to build Python with ↵Florent Xicluna2010-03-141-2/+2
| | | | --with-system-expat option.
* Minor documentation updates for xml.etree.Florent Xicluna2010-03-141-2/+2
|
* Do not chdir when running test_xml_etree, and enhance the findfile helper.Florent Xicluna2010-03-131-14/+4
|
* Move the xml test data to their own directory.Florent Xicluna2010-03-131-20/+25
|
* Fix repr of tree Element on windows.Florent Xicluna2010-03-111-3/+4
|
* Issue #6472: The xml.etree package is updated to ElementTree 1.3. The ↵Florent Xicluna2010-03-111-52/+1525
| | | | cElementTree module is updated too.
* Issue #2746: Don't escape ampersands and angle brackets ("&", "<", ">")Antoine Pitrou2010-02-091-0/+17
| | | | | | in XML processing instructions and comments. These raw characters are allowed by the XML specification, and are necessary when outputting e.g. PHP code in a processing instruction. Patch by Neil Muller.
* Remove unused imports in test modules.Georg Brandl2010-02-071-1/+0
|
* #7092: Silence more py3k warnings. Patch by Florent Xicluna.Ezio Melotti2010-02-031-1/+1
|
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+2
|
* restore test un-intentionally removed in the xmlcore purge (revision 50941)Fred Drake2006-07-291-0/+15
|
* expunge the xmlcore changes:Fred Drake2006-07-291-21/+14
| | | | | | | | | | | | | | | | | | | 41667, 41668 - initial switch to xmlcore 47044 - mention of xmlcore in What's New 50687 - mention of xmlcore in the library reference re-apply xmlcore changes to xml: 41674 - line ending changes (re-applied manually), directory props 41677 - add cElementTree wrapper 41678 - PSF licensing for etree 41812 - whitespace normalization 42724 - fix svn:eol-style settings 43681, 43682 - remove Python version-compatibility cruft from minidom 46773 - fix encoding of \r\n\t in attr values in saxutils 47269 - added XMLParser alias for cElementTree compatibility additional tests were added in Lib/test/test_sax.py that failed with the xmlcore changes; these relate to SF bugs #1511497, #1513611
* added encoding tests to ElementTree/cElementTree testsFredrik Lundh2005-12-161-9/+16
|
* Subversion settings:Armin Rigo2005-12-141-339/+339
| | | | | | | | | svn:ignore *.pyc *.pyo svn:eol-style native The .py files appear to have been checked in with Windows or inconsistent line endings. The current check-in disrupts the 'svn blame', but hopefully it is irrelevant for freshly imported code.
* move the xml package implementation to xmlcore, and adjust the tests toFred Drake2005-12-141-10/+10
| | | | | test that package, not the xmlcore/PyXML switcheroo fiasco in the xml module/package
* added xml.etree test (enough of the ElementTree selftest toFredrik Lundh2005-12-121-0/+339
make sure that all included components work)