|
Ran
|
Jobs
10
|
Files
332
|
Run time
8min
|
Badge
README BADGES
|
push
travis-ci
Fixup the etree xml import. The xml package uses some funky `__init__.py`s and it seems that following the import style used in the tutorials at https://docs.python.org/2/library/xml.etree.elementtree.html is for the best. Without this change, at least one test that used IvyUtils would fail to import etree. Testing Done: Before: ```console $ ./pants test tests/python/pants_test/backend/jvm/tasks:ivy_resolve ... cls = <class 'pants.backend.jvm.ivy_utils.IvyUtils'> path = '/home/jsirois/.ivy2/pants/internal-5a072f399-default.xml' @classmethod def _parse_xml_report(cls, path): logger.debug("Parsing ivy report {}".format(path)) ret = IvyInfo() > etree = xml.etree.ElementTree.parse(path) E AttributeError: 'module' object has no attribute 'etree' src/python/pants/backend/jvm/ivy_utils.py:292: AttributeError ... ``` After the test runs green in isolation. CI went green here: https://travis-ci.org/pantsbuild/pants/builds/70453510 Bugs closed: 1792 Reviewed at https://rbcommons.com/s/twitter/r/2459/
14133 of 19953 relevant lines covered (70.83%)
1.33 hits per line