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

hgrecco / pint / 1486 / 11
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 28 Dec 2019 02:58AM UTC
Files 42
Run time 2s
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

28 Dec 2019 02:53AM UTC coverage: 88.602% (-0.03%) from 88.636%
PKGS="python=3.7 numpy=1.14 uncertainties=3.0"

push

travis-ci

web-flow
Merge #842

842: Missing conversion definition when mutating context transformations. r=hgrecco a=dcupif

Thanks for the library, we use it at our company and it's proven
really helpful so far. We are currently moving to Python 3.7 which
made me spot a potential bug in the `BaseRegistry` class (some
of our tests failed when upgrading).

Everything runs fine in Python 3.5, but in 3.7, we are getting a
`DimensionalityError` resulting from the ill-definition of a conversion.
Root cause is that we are mutating context transformations while
iterating over it.

This PR aims to avoid this potential problem. Since we modify the
transformations dictionary structure while iterating over it, we may
fail to iterate over all entries.

Explanation: "Iterating views while adding or deleting entries in the
dictionary may raise a `RuntimeError` or fail to iterate over all
entries"

https://docs.python.org/3/library/stdtypes.html#dictionary-view-objects

This is my first time contributing to Pint, so please let me know if
something needs to be improved / changed.

Co-authored-by: Damien Cupif <dcupif@kpler.com>

7556 of 8528 relevant lines covered (88.6%)

0.89 hits per line

Source Files on job 1486.11 (PKGS="python=3.7 numpy=1.14 uncertainties=3.0")
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1373
  • Travis Job 1486.11
  • 3739dd07 on github
  • Prev Job for PKGS="python=3.7 numpy=1.14 uncertainties=3.0" on staging (#1481.11)
  • Next Job for PKGS="python=3.7 numpy=1.14 uncertainties=3.0" on staging (#1488.11)
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