summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xml_etree.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18347: ElementTree's html serializer now preserves the case of ↵Christian Heimes2013-07-041-0/+7
|\ | | | | | | closing tags.
| * Issue #18347: ElementTree's html serializer now preserves the case of ↵Christian Heimes2013-07-041-0/+7
| | | | | | | | closing tags.
* | Clean-up duplicated code in testsEli Bendersky2013-05-251-46/+0
|\ \ | |/
| * Clean-up duplicated code in testsEli Bendersky2013-05-251-46/+0
| |
* | Issue #13612: handle unknown encodings without a buffer overflow.Eli Bendersky2013-05-251-0/+92
|\ \ | |/ | | | | | | | | | | This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new function - DefaultUnknownEncodingHandler. Based on a patch by Serhiy Storchaka.
| * Issue #13612: handle unknown encodings without a buffer overflow.Eli Bendersky2013-05-251-0/+92
| | | | | | | | | | | | | | This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new function - DefaultUnknownEncodingHandler. Based on a patch by Serhiy Storchaka.
* | Issue #16986: ElementTree now correctly parses a string input not only whenSerhiy Storchaka2013-05-221-15/+30
|\ \ | |/ | | | | an internal XML encoding is UTF-8 or US-ASCII.
| * Issue #16986: ElementTree now correctly parses a string input not only whenSerhiy Storchaka2013-05-221-15/+30
| | | | | | | | an internal XML encoding is UTF-8 or US-ASCII.
* | Add some testing to verify which module was imported in ET tests.Eli Bendersky2013-05-201-2/+6
| | | | | | | | | | | | | | This is useful when mucking with import_fresh_module to either force or block importing of the _elementtree accelerator. These tests in place provide an immediate indication whether the accelerator was actually imported and overrode the classes it should have.
* | Cleanup more old ET library leftoversEli Bendersky2013-05-191-11/+1
| |
* | Issue #17988: remove unused alias for Element and rename the used oneEli Bendersky2013-05-191-1/+1
| | | | | | | | | | | | | | Renaming to _Element_Py for clarity and moving it to a more logical location. _ElementInterface OTOH is unused and is therefore removed. Close #17988
* | _elementtree.XMLParser._setevents should support any sequence, not just tuplesEli Bendersky2013-05-191-0/+35
| | | | | | | | Also clean up some code around this
* | Issue #17901: fix TreeBuilder construction for an explicit element_factory=NoneEli Bendersky2013-05-181-0/+6
|\ \ | |/ | | | | Based on report and patch by Aaron Oakley.
| * Issue #17901: fix TreeBuilder construction for an explicit element_factory=NoneEli Bendersky2013-05-181-0/+6
| | | | | | | | Based on report and patch by Aaron Oakley.
* | Issue #17741: Add ElementTree.IncrementalParser, an event-driven parser for ↵Antoine Pitrou2013-04-181-0/+130
| | | | | | | | non-blocking applications.
* | Some cosmetic changesEli Bendersky2013-02-261-13/+9
|\ \ | |/
| * Some cosmetic changesEli Bendersky2013-02-261-13/+9
| |
* | Issue #15083: Convert ElementTree doctests to unittests.Serhiy Storchaka2013-02-251-1373/+1132
|\ \ | |/
| * Issue #15083: Convert ElementTree doctests to unittests.Serhiy Storchaka2013-02-251-1373/+1132
| |
* | Issue #9708: Fix support for iterparse(parser=...) argument per documentation.Eli Bendersky2013-01-241-0/+6
|\ \ | |/ | | | | | | When _elementtree is imported, iterparse is redefined as a class and the parser argument was ommitted. Fix this, and add a docstring to the class.
| * Issue #9708: Fix support for iterparse(parser=...) argument per documentation.Eli Bendersky2013-01-241-0/+6
| | | | | | | | | | When _elementtree is imported, iterparse is redefined as a class and the parser argument was ommitted. Fix this, and add a docstring to the class.
* | Issue #12323: Strengthen error checking of the position XPath selectorsEli Bendersky2013-01-241-0/+5
| |
* | Add some tests for XPath numeric indexingEli Bendersky2013-01-221-0/+17
|\ \ | |/
| * Add some tests for XPath numeric indexingEli Bendersky2013-01-221-0/+17
| |
* | Close #14377: Add a new parameter to ElementTree.write and some module-levelEli Bendersky2013-01-131-0/+12
|/ | | | | | | serialization functions - short_empty_elements. It controls how elements without contents are emitted. Patch by Serhiy Storchaka. Feature initially proposed by Ariel Poliak.
* Issue #16922: fixed findtext() to return empty Unicode string instead of ↵Eli Bendersky2013-01-131-0/+3
| | | | | | empty bytes object when there's no text. Patch by Serhiy Storchaka.
* clean trailing whitespaceEli Bendersky2013-01-121-2/+2
|
* Issues #15083 and #16992: port find.* method tests to unittestEli Bendersky2013-01-121-134/+94
|
* Issue #16913: Fix Element.itertext()'s handling of text with XML entities.Eli Bendersky2013-01-101-0/+4
| | | | Patch by Serhiy Storchaka
* normalize whitespaceEli Bendersky2013-01-101-1/+1
|
* Issue #16076: make _elementtree.Element pickle-able in a way that is compatibleEli Bendersky2013-01-101-20/+61
| | | | | | with the Python version of the class. Patch by Daniel Shahaf.
* The get() and iter() are now able to accept keyword arguments.Eli Bendersky2013-01-051-0/+10
| | | | | In conformance with the documentation and the Python version. Patch by Franck Michea.
* Skip a test correctly for the C-version. The decorator doesn't really workEli Bendersky2012-12-301-1/+4
| | | | | because it evaluates its condition before pyET is even set by test_main. Therefore, the check it moved to "runtime".
* For Issue #16076: make sure that pickling of Element objects is tested, and doEli Bendersky2012-12-301-0/+15
| | | | it properly to avoid problems with test-run-order dependencies.
* Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element ↵Antoine Pitrou2012-10-041-2/+42
| | | | element_factory (fixes a regression in SimpleTAL).
* #15970: merge with 3.2.Ezio Melotti2012-09-191-0/+12
|\
| * #15970: xml.etree.ElementTree now serializes correctly the empty HTML ↵Ezio Melotti2012-09-191-0/+20
| | | | | | | | elements "meta" and "param".
* | Preserve the invariant tostring(elem) == b''.join(tostringlist(elem)) and ↵Eli Bendersky2012-07-171-0/+9
| | | | | | | | add a test to make sure it keeps working
* | Close #1767933: Badly formed XML using etree and utf-16. Patch by Serhiy ↵Eli Bendersky2012-07-151-65/+175
| | | | | | | | Storchaka, with some minor fixes by me
* | Make the test more resilient to test-run order (closes #15075)Eli Bendersky2012-06-161-8/+20
| |
* | Skip XincludeTest entirely instead of just ignoring failures, because it may ↵Eli Bendersky2012-06-151-1/+1
| | | | | | | | segfault, depending on the order of running tests
* | Removed _SimpleElementPath and its flaky test. The test monkey-patches the ↵Eli Bendersky2012-06-151-23/+0
| | | | | | | | module, which causes other failures and fails itself depending on the order tests are run.
* | mark problematic test as expected failure - investigatingEli Bendersky2012-06-151-2/+6
| |
* | Replace the iter/itertext methods of Element in _elementtree with true C ↵Eli Bendersky2012-06-151-108/+139
| | | | | | | | | | | | implementations, instead of the bootstrapped Python code. In addition to being cleaner (removing the last remains of the bootstrapping code in _elementtree), this gives a 10x performance boost for iter() on large documents. Also reorganized the tests a bit to be more robust.
* | Issue #14007: implement doctype() method calling in XMLParser of _elementtree.Eli Bendersky2012-06-011-1/+18
| | | | | | | | Includes exposing a doctype handler from expat through pyexpat.
* | Issue #14007: make XMLParser a real subclassable type exported from ↵Eli Bendersky2012-06-011-0/+29
| | | | | | | | _elementtree. +cleanups
* | Issue #14007: implemented the 'element_factory' feature of TreeBuilder inEli Bendersky2012-05-301-4/+14
| | | | | | | | _elementtree, with a test.
* | Issue #14007: make TreeBuilder an actual type exposed from _elementtree, and ↵Eli Bendersky2012-05-291-0/+14
| | | | | | | | subclassable.
* | Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtree.Eli Bendersky2012-05-291-1/+65
| | | | | | | | | | Add attrib keyword to Element and SubElement in _elementtree. Patch developed with Ezio Melotti.
* | Issue #14849: setup Element data members to be assignable in subclassesEli Bendersky2012-05-201-0/+4
| |