summaryrefslogtreecommitdiff
path: root/src/lxml/tests
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite two tests to try to make them work in macOS.macos_unicode_testsStefan Behnel2021-07-182-14/+6
|
* Rewrite Unicode chunk parsing by directly encoding to UTF-8.Stefan Behnel2021-07-181-6/+55
| | | | Previously, we required Py_UNICODE strings, which is inefficient since most strings in Py3 use the PEP-393 memory layout.
* Adapt a test to a behavioural change in libxml2 2.9.11+.Stefan Behnel2021-05-191-1/+4
|
* Clean up fuzzer test.Stefan Behnel2021-05-081-1/+3
|
* Add initial Atheris fuzzer. (GH-313)DavidKorczynski2021-05-081-0/+23
|
* Enable access to the system_url of DTD entity declarations (GH-317)Joel2021-05-081-0/+8
|
* Exclude a test in Py 3.9.0 due to ET bug https://bugs.python.org/issue41900Stefan Behnel2020-10-151-0/+12
|
* Disable test in unfixed ET versions <= 3.8.6.Stefan Behnel2020-10-011-0/+4
|
* LP#1869455: C14N 2.0 serialisation failed for unprefixed attributes when a ↵Stefan Behnel2020-10-011-0/+8
| | | | default namespace was defined.
* Remove dead imports.Stefan Behnel2020-08-132-2/+2
|
* Remove dead code.Stefan Behnel2020-08-131-9/+0
|
* Disable gc.collect() calls after each test run since there haven't been ↵Stefan Behnel2020-08-131-1/+10
| | | | proxy crashes for a very long time now and it considerably slows down the test runs (~factor 6).
* Remove dead code.Stefan Behnel2020-08-131-1/+1
|
* Use sphinx-apidoc to create API reference (GH-309)Chris Mayo2020-08-041-1/+3
| | | | | | | | | | | | | * Add some missing files to .gitignore * Remove duplicate open_in_browser from lxml.html.__all__ * Make ETreeXMLSchemaTestCase docstring Sphinx autodoc friendly * Fix outdated codespeak.net links in docstrings * Convert html/defs.py comment to be the module docstring * Use sphinx-apidoc to create the API reference instead of epydoc Epydoc is Python 2 only and unmaintained. sphinx-apidoc is run before the build step, to avoid duplicate entries being created. * Include the elements from html.builder in the API reference * Use Python 3.8 for coverage Travis job * Build html documentation in Travis
* Extend C14N2 tests to cover comment handling and "strip_text" together.Stefan Behnel2020-06-141-16/+21
|
* Fix a test after moving it to a different test module.Stefan Behnel2020-05-261-2/+2
|
* Move some ElementTree compatibility tests over to the etree-only tests since ↵Stefan Behnel2020-05-262-248/+252
| | | | the features were removed in Py3.9.
* Make iter() work with qnames (GH-298)xmo-odoo2020-03-031-0/+24
| | | | | "QName" is supposed to be usable anywhere a tag name is expected and iter() should take any number of tag names for filtering, but before this change passing a QName to iter() results in an exception.
* LP#1857794: Tail text of nodes that get removed from a document using item ↵Stefan Behnel2020-01-021-0/+28
| | | | deletion disappeared silently instead of sticking with the node that was removed.
* Merge lxml-4.4 branch into master.Stefan Behnel2019-12-271-0/+11
|\
| * LP#1844674: Include tail text of comments and PIs in itertext() results ↵Stefan Behnel2019-12-271-0/+11
| | | | | | | | (regression in lxml 4.4).
| * Fix false detection of recursive include (GH-286)RainerHausdorf2019-08-181-0/+54
| | | | | | | | | | | | | | | | | | | | Fix false detection of recursive include. In some cases ElementInclude does raise FatalIncludeError because of recursive include detection. This is the case if the same file gets included multiple times, but not recursive. This is a fix for https://bugs.launchpad.net/lxml/+bug/1835708
* | Clean up imports in tests.Stefan Behnel2019-12-2723-135/+93
| |
* | Fix some typos in comments (found by codespell) (GH-292)Stefan Weil2019-11-132-3/+3
| | | | | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* | Extend HTML tests a little to include tag matching.Stefan Behnel2019-09-281-3/+19
| |
* | Fix false detection of recursive include (GH-286)RainerHausdorf2019-08-181-0/+54
| | | | | | | | | | | | | | | | | | Fix false detection of recursive include. In some cases ElementInclude does raise FatalIncludeError because of recursive include detection. This is the case if the same file gets included multiple times, but not recursive. This is a fix for https://bugs.launchpad.net/lxml/+bug/1835708
* | Validate "level" argument in indent() function.Stefan Behnel2019-08-151-0/+11
| |
* | Implement indent() function for in-place pretty-printing of XML trees.Stefan Behnel2019-08-131-0/+119
|/
* LP#1838252: Keep the order provided by an OrderedDict that gets passed as ↵Stefan Behnel2019-07-291-14/+27
| | | | attrib mapping during element creation. This was broken in 4.4.0.
* Update TreeBuilder tests from CPython's test suite.Stefan Behnel2019-07-271-0/+114
|
* Fix typos (GH-282)Min ho Kim2019-06-241-2/+2
|
* Prevent the default namespace from being picked up when searching for ↵Stefan Behnel2019-05-081-0/+59
| | | | | | unprefixed attribute names. Fix copied from https://github.com/python/cpython/pull/13201
* LP#1827833: Fix .rnc parsing support with recent versions of rnc2rng.Stefan Behnel2019-05-061-4/+9
|
* Support parsing from file paths in canonicalize(), not just file-like objects.Stefan Behnel2019-04-291-10/+12
|
* Change canonicalize() interface to return its result as a text string by ↵Stefan Behnel2019-04-291-6/+2
| | | | default.
* Extend tests.Stefan Behnel2019-04-291-0/+20
|
* Implement C14N 2.0 exclusion of tags and attributes.Stefan Behnel2019-04-281-0/+54
|
* Increase test coverage by copying some tests from CPython.Stefan Behnel2019-04-282-0/+48
|
* Fix last minute change.Stefan Behnel2019-04-271-1/+1
|
* Correctly serialise text content in ET.write() and ET.tostring() with C14N 2.0.Stefan Behnel2019-04-272-6/+58
|
* Implement "c14n2" serialisation method via iterwalk().Stefan Behnel2019-04-271-0/+134
|
* Add C14N 2.0 implementation.Stefan Behnel2019-04-2656-1/+474
|
* Make a test optional that uses ctypes.Stefan Behnel2019-04-241-3/+6
|
* Rename test to make it run later since it's more complex than other related ↵Stefan Behnel2019-04-221-1/+1
| | | | tests.
* Fix end-ns reporting in pull parser when start-ns events are not requested.Stefan Behnel2019-04-221-0/+44
|
* Repair handling of "end_ns" target callbacks when "start" events are not ↵Stefan Behnel2019-04-221-1/+72
| | | | requested.
* Disable a compatibility test in Py3.8 < alpha4 where it fails in ElementTree.Stefan Behnel2019-04-211-2/+2
|
* Disable a compatibility test in Py3.5 where it fails in ElementTree. (It ↵Stefan Behnel2019-04-211-0/+1
| | | | would work in Py2.7, but who cares, really.)
* Fix a test that was assigning an incorrectly sized slice.Stefan Behnel2019-04-211-3/+7
|
* Fix some misbehaviour in slice assignments:Stefan Behnel2019-04-211-40/+26
| | | | | | - Large step sizes could lead to long running stupid loops. - ValueError was not raised when assigning extended slices of the wrong size. - Slices with negative step size could be inserted in the wrong place, too far on the left.