Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #9708: Fix support for iterparse(parser=...) argument per documentation. | Eli Bendersky | 2013-01-24 | 1 | -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 Bendersky | 2013-01-24 | 1 | -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 selectors | Eli Bendersky | 2013-01-24 | 1 | -0/+5 |
| | | |||||
* | | Add some tests for XPath numeric indexing | Eli Bendersky | 2013-01-22 | 1 | -0/+17 |
|\ \ | |/ | |||||
| * | Add some tests for XPath numeric indexing | Eli Bendersky | 2013-01-22 | 1 | -0/+17 |
| | | |||||
* | | Close #14377: Add a new parameter to ElementTree.write and some module-level | Eli Bendersky | 2013-01-13 | 1 | -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 Bendersky | 2013-01-13 | 1 | -0/+3 |
| | | | | | | empty bytes object when there's no text. Patch by Serhiy Storchaka. | ||||
* | clean trailing whitespace | Eli Bendersky | 2013-01-12 | 1 | -2/+2 |
| | |||||
* | Issues #15083 and #16992: port find.* method tests to unittest | Eli Bendersky | 2013-01-12 | 1 | -134/+94 |
| | |||||
* | Issue #16913: Fix Element.itertext()'s handling of text with XML entities. | Eli Bendersky | 2013-01-10 | 1 | -0/+4 |
| | | | | Patch by Serhiy Storchaka | ||||
* | normalize whitespace | Eli Bendersky | 2013-01-10 | 1 | -1/+1 |
| | |||||
* | Issue #16076: make _elementtree.Element pickle-able in a way that is compatible | Eli Bendersky | 2013-01-10 | 1 | -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 Bendersky | 2013-01-05 | 1 | -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 work | Eli Bendersky | 2012-12-30 | 1 | -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 do | Eli Bendersky | 2012-12-30 | 1 | -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 Pitrou | 2012-10-04 | 1 | -2/+42 |
| | | | | element_factory (fixes a regression in SimpleTAL). | ||||
* | #15970: merge with 3.2. | Ezio Melotti | 2012-09-19 | 1 | -0/+12 |
|\ | |||||
| * | #15970: xml.etree.ElementTree now serializes correctly the empty HTML ↵ | Ezio Melotti | 2012-09-19 | 1 | -0/+20 |
| | | | | | | | | elements "meta" and "param". | ||||
* | | Preserve the invariant tostring(elem) == b''.join(tostringlist(elem)) and ↵ | Eli Bendersky | 2012-07-17 | 1 | -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 Bendersky | 2012-07-15 | 1 | -65/+175 |
| | | | | | | | | Storchaka, with some minor fixes by me | ||||
* | | Make the test more resilient to test-run order (closes #15075) | Eli Bendersky | 2012-06-16 | 1 | -8/+20 |
| | | |||||
* | | Skip XincludeTest entirely instead of just ignoring failures, because it may ↵ | Eli Bendersky | 2012-06-15 | 1 | -1/+1 |
| | | | | | | | | segfault, depending on the order of running tests | ||||
* | | Removed _SimpleElementPath and its flaky test. The test monkey-patches the ↵ | Eli Bendersky | 2012-06-15 | 1 | -23/+0 |
| | | | | | | | | module, which causes other failures and fails itself depending on the order tests are run. | ||||
* | | mark problematic test as expected failure - investigating | Eli Bendersky | 2012-06-15 | 1 | -2/+6 |
| | | |||||
* | | Replace the iter/itertext methods of Element in _elementtree with true C ↵ | Eli Bendersky | 2012-06-15 | 1 | -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 Bendersky | 2012-06-01 | 1 | -1/+18 |
| | | | | | | | | Includes exposing a doctype handler from expat through pyexpat. | ||||
* | | Issue #14007: make XMLParser a real subclassable type exported from ↵ | Eli Bendersky | 2012-06-01 | 1 | -0/+29 |
| | | | | | | | | _elementtree. +cleanups | ||||
* | | Issue #14007: implemented the 'element_factory' feature of TreeBuilder in | Eli Bendersky | 2012-05-30 | 1 | -4/+14 |
| | | | | | | | | _elementtree, with a test. | ||||
* | | Issue #14007: make TreeBuilder an actual type exposed from _elementtree, and ↵ | Eli Bendersky | 2012-05-29 | 1 | -0/+14 |
| | | | | | | | | subclassable. | ||||
* | | Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtree. | Eli Bendersky | 2012-05-29 | 1 | -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 subclasses | Eli Bendersky | 2012-05-20 | 1 | -0/+4 |
| | | |||||
* | | Fixes and enhancements to _elementtree: | Eli Bendersky | 2012-04-03 | 1 | -0/+35 |
| | | | | | | | | | | | | * Fixed refleak problems when GC collection is run (see messages in issue #14065) * Added weakref support to Element objects | ||||
* | | Removing the test of Element that causes ref-leak in GC (issue #14464). | Eli Bendersky | 2012-04-01 | 1 | -10/+0 |
| | | | | | | | | | | | | | | | | I will now continue investigating the cause of the ref-leak, but I wanted to remove the test so that the refcount test in the buildbots could be clean. The whole change (adding GC to Element) is not reverted because it improved the situation (GC works for immediate cycles) and didn't cause regressions (the test is new and was added together with the fix). | ||||
* | | Fix the tests of GC collection in ET.Element according to Benjamin's ↵ | Eli Bendersky | 2012-03-31 | 1 | -23/+21 |
| | | | | | | | | recommendations | ||||
* | | Issue #14065: Added cyclic GC support to ET.Element | Eli Bendersky | 2012-03-30 | 1 | -1/+26 |
| | | |||||
* | | Issue #13782: streamline argument type-checking in ET.Element | Eli Bendersky | 2012-03-23 | 1 | -3/+9 |
| | | | | | | | | | | | | | | | | append, extend and insert now consistently type-check their argument in both the C and Python implementations, and raise TypeError for non-Element argument. Added tests | ||||
* | | fix trailing whitespace | Eli Bendersky | 2012-03-16 | 1 | -1/+1 |
| | | |||||
* | | Add a test that makes sure TreeBuilder can be passed element_factory in the | Eli Bendersky | 2012-03-16 | 1 | -0/+5 |
| | | | | | | | | | | constructor. Marked as expectedFailure since it currently fails for the C implementation. | ||||
* | | Issue #14207: the ParseError exception raised by _elementtree was made | Eli Bendersky | 2012-03-16 | 1 | -20/+22 |
| | | | | | | | | | | | | | | | | | | | | consistent to the one raised by the Python module (the 'code' attribute was added). In addition, the exception is now documented. Added a test to check that ParseError has the required attributes, and threw away the equivalent doctest which is no longer required. | ||||
* | | Closes Issue #14246: _elementtree parser will now handle io.StringIO | Eli Bendersky | 2012-03-16 | 1 | -0/+14 |
| | | |||||
* | | Issue #14178: Problem deleting slices with steps != +1 in the _elementtree ↵ | Eli Bendersky | 2012-03-09 | 1 | -5/+86 |
| | | | | | | | | | | | | module. Fixed the problem and added some tests. Closes #14178 | ||||
* | | Issue #14007: accept incomplete TreeBuilder objects (missing ↵ | Florent Xicluna | 2012-03-05 | 1 | -46/+103 |
| | | | | | | | | start/end/data/close) for the Python implementation as well. Add disabled tests for the doctype() method. | ||||
* | | Issue #14128: Exposing Element as an actual type from _elementtree, rather ↵ | Eli Bendersky | 2012-03-04 | 1 | -2/+37 |
| | | | | | | | | | | | | | | | | than a factory function. This makes the C implementation more aligned with the Python implementation. Also added some tests to ensure that Element is now a type and that it can be subclassed. | ||||
* | | fix the _namespace_map cleanup for cElementTree tests. | Florent Xicluna | 2012-02-16 | 1 | -6/+1 |
| | | |||||
* | | The C accelerator was not always imported for cElementTree's tests. (there's ↵ | Florent Xicluna | 2012-02-16 | 1 | -1/+0 |
| | | | | | | | | still an issue with --huntrleaks switch) | ||||
* | | make TestAccelerator[Not]Imported for ElementTree more robust | Eli Bendersky | 2012-02-16 | 1 | -3/+1 |
| | | |||||
* | | in the tests of ElementTree, verify that the C accelerator is imported or ↵ | Eli Bendersky | 2012-02-16 | 1 | -0/+10 |
| | | | | | | | | not imported as expected | ||||
* | | Issue #13988: cElementTree is deprecated and the _elementtree accelerator is ↵ | Florent Xicluna | 2012-02-13 | 1 | -23/+26 |
| | | | | | | | | automatically used whenever available. | ||||
* | | Merge 3.2: issue #2892 | Florent Xicluna | 2011-11-01 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | Closes #2892: preserve iterparse events in case of SyntaxError. | Florent Xicluna | 2011-11-01 | 1 | -0/+1 |
| | |