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

hgrecco / pint / 1788
91%

Build:
DEFAULT BRANCH: master
Ran 17 Jun 2020 10:11PM UTC
Jobs 13
Files 18
Run time 7min
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
1788

push

travis-ci

web-flow
Merge #1116

1116: Harmonize most doctests with Pint's current behavior r=hgrecco a=clarkgwillison

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

This PR partially addresses #947, #972, and #990 

After merging, the number of failing doctests in the Sphinx documentation should go from 92 (as mentioned in #947) down to 3:
```
Doctest summary
===============
  335 tests
    3 failures in tests
    0 failures in setup code
    0 failures in cleanup code
build finished with problems.
make: *** [doctest] Error 1
```
Which will put us well in reach of enabling doctests in Travis to prevent documentation regressions in the future.

Most tests were fixed in this PR by deferring to the current behavior of Pint, however `Quantity.__repr__()` was modified to round floating point magnitudes to 9 digits to avoid several test failures that were being caused by floating point ambiguities.

Issue #1115 was opened to track the 3 tests that I could not easily resolve. Once that issue is resolved, we can enable doctests in Travis without breaking CI.

Co-authored-by: Clark Willison <clarkgwillison@gmail.com>

3610 of 4015 relevant lines covered (89.91%)

10.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1788.1 (PKGS="python=3.7 flake8 black isort") 17 Jun 2020 10:11PM UTC 0
0.0
Travis Job 1788.1
4 1788.4 (PKGS="python=3.7") 17 Jun 2020 10:11PM UTC 0
75.1
Travis Job 1788.4
5 1788.5 (PKGS="python=3.8") 17 Jun 2020 10:11PM UTC 0
75.43
Travis Job 1788.5
6 1788.6 (PKGS="python=3.6 uncertainties=3.0") 17 Jun 2020 10:13PM UTC 0
88.32
Travis Job 1788.6
7 1788.7 (PKGS="python=3.7 uncertainties=3.0") 17 Jun 2020 10:12PM UTC 0
88.32
Travis Job 1788.7
8 1788.8 (PKGS="python=3.6 numpy=1.14 matplotlib") 17 Jun 2020 10:14PM UTC 0
84.69
Travis Job 1788.8
9 1788.9 (PKGS="python=3.7 numpy=1.14 matplotlib") 17 Jun 2020 10:14PM UTC 0
84.69
Travis Job 1788.9
11 1788.11 (PKGS="python=3.6 numpy=1.14 uncertainties=3.0") 17 Jun 2020 10:15PM UTC 0
85.81
Travis Job 1788.11
12 1788.12 (PKGS="python=3.7 numpy=1.14 uncertainties=3.0") 17 Jun 2020 10:15PM UTC 0
85.81
Travis Job 1788.12
13 1788.13 (PKGS="python=3.6 numpy uncertainties") 17 Jun 2020 10:15PM UTC 0
88.25
Travis Job 1788.13
14 1788.14 (PKGS="python=3.7 numpy uncertainties") 17 Jun 2020 10:16PM UTC 0
88.32
Travis Job 1788.14
15 1788.15 (PKGS="python=3.8 numpy uncertainties") 17 Jun 2020 10:16PM UTC 0
88.47
Travis Job 1788.15
16 1788.16 (PKGS="python=3.8 numpy uncertainties sparse xarray netCDF4") 17 Jun 2020 10:18PM UTC 0
88.57
Travis Job 1788.16
Source Files on build 1788
  • Tree
  • List 18
  • Changed 8
  • Source Changed 7
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #1788
  • 4959f0fe on github
  • Prev Build on master (#1784)
  • Next Build on master (#1790)
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