• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 5586
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: automation/release/2.33.0.dev4
DEFAULT BRANCH: main
Ran 10 Jul 2015 11:30PM UTC
Jobs 10
Files 332
Run time 8min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5586

push

travis-ci

John Sirois
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

Jobs
ID Job ID Ran Files Coverage
1 5586.1 (CI_FLAGS="-cjlpn 'Various pants self checks'") 10 Jul 2015 11:31PM UTC 0
Travis Job 5586.1
2 5586.2 (CI_FLAGS="-fkmsrcn -u 0/2 'Unit tests for pants and pants-plugins - shard 1'") 10 Jul 2015 11:30PM UTC 0
66.04
Travis Job 5586.2
3 5586.3 (CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'") 10 Jul 2015 11:33PM UTC 0
66.86
Travis Job 5586.3
4 5586.4 (CI_FLAGS="-fkmsrcjlp 'Python contrib tests'") 10 Jul 2015 11:33PM UTC 0
Travis Job 5586.4
5 5586.5 (CI_FLAGS="-fkmsrjlpn -i 0/6 'Python integration tests for pants - shard 1'") 10 Jul 2015 11:34PM UTC 0
Travis Job 5586.5
6 5586.6 (CI_FLAGS="-fkmsrjlpn -i 1/6 'Python integration tests for pants - shard 2'") 10 Jul 2015 11:35PM UTC 0
Travis Job 5586.6
7 5586.7 (CI_FLAGS="-fkmsrjlpn -i 2/6 'Python integration tests for pants - shard 3'") 10 Jul 2015 11:36PM UTC 0
Travis Job 5586.7
8 5586.8 (CI_FLAGS="-fkmsrjlpn -i 3/6 'Python integration tests for pants - shard 4'") 10 Jul 2015 11:38PM UTC 0
Travis Job 5586.8
9 5586.9 (CI_FLAGS="-fkmsrjlpn -i 4/6 'Python integration tests for pants - shard 5'") 10 Jul 2015 11:38PM UTC 0
Travis Job 5586.9
10 5586.10 (CI_FLAGS="-fkmsrjlpn -i 5/6 'Python integration tests for pants - shard 6'") 10 Jul 2015 11:39PM UTC 0
Travis Job 5586.10
Source Files on build 5586
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5586
  • 5ad9650b on github
  • Prev Build on master (#5584)
  • Next Build on master (#5590)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc