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

hgrecco / pint / 655 / 1
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 31 Mar 2017 03:43AM UTC
Files 15
Run time 1s
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

31 Mar 2017 03:40AM UTC coverage: 86.865%. First build
UNCERTAINTIES="N" PYTHON="2.6" NUMPY_VERSION=1.9.2

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.

2599 of 2992 relevant lines covered (86.86%)

0.87 hits per line

Source Files on job 655.1 (UNCERTAINTIES="N" PYTHON="2.6" NUMPY_VERSION=1.9.2)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 655
  • Travis Job 655.1
  • e5024d42 on github
  • Next Job for UNCERTAINTIES="N" PYTHON="2.6" NUMPY_VERSION=1.9.2 on staging (#656.1)
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