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

hgrecco / pint / 655
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 31 Mar 2017 03:42AM UTC
Jobs 8
Files 15
Run time 3min
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
655

push

travis-ci

bors[bot]
Merge #480

480: Change `UndefinedUnitError` to inherit from `AttributeError` r=hgrecco
Running doctests that use Pint fail because the unit registry raises the wrong error if an attribute is not found, in this case:

```
>>> from pint import UnitRegistry
>>> ur = UnitRegistry()
>>> hasattr(ur, '__wrapped__')
False
```

is the desired behaviour. In current master branch this little test will fail with a `UndefinedUnitError` exception. Changing the `UndefinedUnitError` to inherit from `AttributeError` fixes the issue.

2666 of 2992 relevant lines covered (89.1%)

6.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 655.1 (UNCERTAINTIES="N" PYTHON="2.6" NUMPY_VERSION=1.9.2) 31 Mar 2017 03:43AM UTC 0
86.86
Travis Job 655.1
2 655.2 (UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=1.11.2) 31 Mar 2017 03:43AM UTC 0
86.9
Travis Job 655.2
3 655.3 (UNCERTAINTIES="N" PYTHON="3.3" NUMPY_VERSION=1.9.2) 31 Mar 2017 03:42AM UTC 0
86.66
Travis Job 655.3
4 655.4 (UNCERTAINTIES="N" PYTHON="3.4" NUMPY_VERSION=1.11.2) 31 Mar 2017 03:43AM UTC 0
86.83
Travis Job 655.4
5 655.5 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=1.11.2) 31 Mar 2017 03:43AM UTC 0
86.83
Travis Job 655.5
6 655.6 (UNCERTAINTIES="Y" PYTHON="3.5" NUMPY_VERSION=1.11.2) 31 Mar 2017 03:46AM UTC 0
88.77
Travis Job 655.6
7 655.7 (UNCERTAINTIES="N" PYTHON="2.7" NUMPY_VERSION=0) 31 Mar 2017 03:45AM UTC 0
77.71
Travis Job 655.7
8 655.8 (UNCERTAINTIES="N" PYTHON="3.5" NUMPY_VERSION=0) 31 Mar 2017 03:45AM UTC 0
77.71
Travis Job 655.8
Source Files on build 655
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #655
  • e5024d42 on github
  • Next Build on staging (#656)
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