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

hgrecco / pint / 1787
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 17 Jun 2020 10:01PM UTC
Jobs 16
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
1787

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>

3 of 3 new or added lines in 1 file covered. (100.0%)

3610 of 4015 relevant lines covered (89.91%)

11.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1787.1 (PKGS="python=3.7 flake8 black isort") 17 Jun 2020 10:01PM UTC 0
0.0
Travis Job 1787.1
2 1787.2 (PKGS="python=3.7 ipython matplotlib nbsphinx numpy pandas jupyter_client ipykernel python-graphviz graphviz xarray sparse dask[complete] sphinx Pygments==2.3.1 docutils==0.14 alabaster commonmark==0.8.1 recommonmark==0.5.0") 17 Jun 2020 10:03PM UTC 0
0.0
Travis Job 1787.2
3 1787.3 (PKGS="python=3.6") 17 Jun 2020 10:02PM UTC 0
75.17
Travis Job 1787.3
4 1787.4 (PKGS="python=3.7") 17 Jun 2020 10:02PM UTC 0
75.17
Travis Job 1787.4
5 1787.5 (PKGS="python=3.8") 17 Jun 2020 10:02PM UTC 0
75.5
Travis Job 1787.5
6 1787.6 (PKGS="python=3.6 uncertainties=3.0") 17 Jun 2020 10:04PM UTC 0
88.32
Travis Job 1787.6
7 1787.7 (PKGS="python=3.7 uncertainties=3.0") 17 Jun 2020 10:04PM UTC 0
88.32
Travis Job 1787.7
8 1787.8 (PKGS="python=3.6 numpy=1.14 matplotlib") 17 Jun 2020 10:04PM UTC 0
84.69
Travis Job 1787.8
9 1787.9 (PKGS="python=3.7 numpy=1.14 matplotlib") 17 Jun 2020 10:04PM UTC 0
84.69
Travis Job 1787.9
10 1787.10 (PKGS="python=3.8 numpy=1.17 matplotlib") 17 Jun 2020 10:06PM UTC 0
87.47
Travis Job 1787.10
11 1787.11 (PKGS="python=3.6 numpy=1.14 uncertainties=3.0") 17 Jun 2020 10:06PM UTC 0
85.81
Travis Job 1787.11
12 1787.12 (PKGS="python=3.7 numpy=1.14 uncertainties=3.0") 17 Jun 2020 10:07PM UTC 0
85.73
Travis Job 1787.12
13 1787.13 (PKGS="python=3.6 numpy uncertainties") 17 Jun 2020 10:07PM UTC 0
88.32
Travis Job 1787.13
14 1787.14 (PKGS="python=3.7 numpy uncertainties") 17 Jun 2020 10:07PM UTC 0
88.25
Travis Job 1787.14
15 1787.15 (PKGS="python=3.8 numpy uncertainties") 17 Jun 2020 10:08PM UTC 0
88.47
Travis Job 1787.15
16 1787.16 (PKGS="python=3.8 numpy uncertainties sparse xarray netCDF4") 17 Jun 2020 10:09PM UTC 0
88.57
Travis Job 1787.16
Source Files on build 1787
  • Tree
  • List 18
  • Changed 18
  • Source Changed 18
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #1787
  • 4959f0fe on github
  • Prev Build on staging (#1783)
  • Next Build on staging (#1789)
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