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

hgrecco / pint / 1978 / 6
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 07 Jan 2021 05:22AM UTC
Files 18
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

07 Jan 2021 05:01AM UTC coverage: 88.22% (+0.009%) from 88.211%
PKGS="python=3.6 uncertainties=3.0"

push

travis-ci

web-flow
Merge #1201

1201: Fix bug with comparisons of subclasses of Quantity. r=hgrecco a=lewisamarshall

- [x] Closes #1134
- [x] Executed ``black -t py36 . && isort -rc . && flake8`` with no errors
- [x] The change is fully covered by automated unit tests
- Documented in docs/ as appropriate (N/A, bugfix)
- [x] Added an entry to the CHANGES file

This PR compares `other` to `Quantity` instead of `self.__class__` to ensure that subclasses of `Quantity` can compare with one-another. It also adds an explicit comparison of the registries to be sure that only `Quantity` objects from the same registry can be compared.

Test cases are added based on the suggested behavior in #1134 . 

Co-authored-by: Lewis A. Marshall <lewis@purigenbio.com>
Co-authored-by: Hernan Grecco <hernan.grecco@gmail.com>

3662 of 4151 relevant lines covered (88.22%)

0.88 hits per line

Source Files on job 1978.6 (PKGS="python=3.6 uncertainties=3.0")
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1836
  • Travis Job 1978.6
  • 912fd33f on github
  • Prev Job for PKGS="python=3.6 uncertainties=3.0" on staging (#1975.6)
  • Next Job for PKGS="python=3.6 uncertainties=3.0" on staging (#1981.6)
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

© 2025 Coveralls, Inc