The imports were sorted in May, which broke the monkeypatching in safe_lxml. I added two tests that the XML parsers are properly patched, but they didn't pass until I added the monkeypatching to the start of the test runs. Once that was done, some tests failed because they relied on specific details of how empty elements are represented. Those tests are now fixed.
6 lines
151 B
Python
6 lines
151 B
Python
"""Code run by pylint before running any tests."""
|
|
|
|
# Patch the xml libs before anything else.
|
|
from safe_lxml import defuse_xml_libs
|
|
defuse_xml_libs()
|