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

hgrecco / pint / 1612 / 12
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: fix-nonmult-doc
DEFAULT BRANCH: master
Ran 11 Feb 2020 03:51AM UTC
Files 18
Run time 3s
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

11 Feb 2020 03:45AM UTC coverage: 86.432% (-0.02%) from 86.448%
PKGS="python=3.7 numpy=1.14 uncertainties=3.0"

push

travis-ci

hgrecco
Make `__str__` and `__format__` locale aware

With this commit, all string formatting operations are locale aware

    >>> ureg.set_fmt_locale('fr_FR')
    >>> str(accel)
    '1.3 mètre par seconde²'
    >>> "%s" % accel
    '1.3 mètre par seconde²'
    >>> "{}".format(accel)
    '1.3 mètre par seconde²'

It should not break any code as the default locale value for the
Registry is `None` (meaning do not localize).

Close #984

3370 of 3899 relevant lines covered (86.43%)

0.86 hits per line

Source Files on job 1612.12 (PKGS="python=3.7 numpy=1.14 uncertainties=3.0")
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1493
  • Travis Job 1612.12
  • fa86d1af on github
  • Prev Job for PKGS="python=3.7 numpy=1.14 uncertainties=3.0" on develop (#1594.12)
  • Next Job for PKGS="python=3.7 numpy=1.14 uncertainties=3.0" on develop (#1633.12)
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