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

tomerfiliba / plumbum / 27456614171
88%

Build:
DEFAULT BRANCH: master
Ran 13 Jun 2026 04:32AM UTC
Jobs 15
Files 46
Run time 1min
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

13 Jun 2026 04:31AM UTC coverage: 87.488% (+0.05%) from 87.436%
27456614171

push

github

web-flow
fix(colorlib): correctness fixes (stdout guard, Color(0), from_ansi, bold-off) (#823)

* fix(colorlib): fix five correctness bugs in colorlib (issue #820)

- Guard get_color_repr() against sys.stdout being None or lacking isatty
  (pythonw / GUI embedding no longer raises AttributeError on import)
- Fix Color(0) returning reset instead of black by replacing falsy `not
  r_or_color` guard with explicit `is None or == ""` check
- Raise ColorNotFound instead of AssertionError for out-of-range int colors
  in Color.__init__ and ColorFactory.__getitem__
- Require both-or-neither of g/b positional args to Color(); raise
  ColorNotFound when exactly one is given
- Fix Style.from_ansi() to iterate all ANSI escape sequences via finditer
  (previously only the first sequence was parsed)
- Fix bold-off round-trip: parse ANSI code 22 as both bold=False and
  dim=False ("normal intensity") so str(ANSIStyle(attributes={'bold':
  False})) re-parses correctly
- (optional) Avoid side-effecting self.bg.fg in Style.ansi_codes by
  operating on a copy

Assisted-by: ClaudeCode:claude-sonnet-4.6

* test: clear FORCE_COLOR/NO_COLOR in get_color_repr stdout tests

CI sets FORCE_COLOR=3, which get_color_repr() honors before the stdout
check, so the stdout-guard regression tests must clear the color env vars
to exercise the isatty path. Fixes the #823 CI failures.

Assisted-by: ClaudeCode:claude-sonnet-4.6

1323 of 1778 branches covered (74.41%)

19 of 19 new or added lines in 2 files covered. (100.0%)

5496 of 6282 relevant lines covered (87.49%)

12.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 test-ubuntu-latest-3.10 - 27456614171.1 13 Jun 2026 04:35AM UTC 46
85.94
GitHub Action Run
2 test-windows-latest-3.11 - 27456614171.2 13 Jun 2026 04:35AM UTC 46
70.37
GitHub Action Run
3 test-macos-latest-3.11 - 27456614171.3 13 Jun 2026 04:35AM UTC 46
85.73
GitHub Action Run
4 test-ubuntu-latest-pypy-3.11 - 27456614171.4 13 Jun 2026 04:35AM UTC 46
85.91
GitHub Action Run
5 test-ubuntu-latest-3.12 - 27456614171.5 13 Jun 2026 04:35AM UTC 46
85.94
GitHub Action Run
6 test-ubuntu-latest-3.13 - 27456614171.6 13 Jun 2026 04:35AM UTC 46
85.91
GitHub Action Run
7 test-ubuntu-latest-3.15 - 27456614171.7 13 Jun 2026 04:35AM UTC 46
85.91
GitHub Action Run
8 test-windows-latest-3.9 - 27456614171.8 13 Jun 2026 04:35AM UTC 46
70.34
GitHub Action Run
9 test-ubuntu-latest-3.14 - 27456614171.9 13 Jun 2026 04:35AM UTC 46
85.91
GitHub Action Run
10 test-ubuntu-latest-3.11 - 27456614171.10 13 Jun 2026 04:35AM UTC 46
85.73
GitHub Action Run
11 test-macos-latest-3.9 - 27456614171.11 13 Jun 2026 04:35AM UTC 46
85.7
GitHub Action Run
12 test-windows-latest-3.14 - 27456614171.12 13 Jun 2026 04:35AM UTC 46
70.19
GitHub Action Run
13 test-macos-latest-3.15 - 27456614171.13 13 Jun 2026 04:35AM UTC 46
85.7
GitHub Action Run
14 test-macos-latest-3.14 - 27456614171.14 13 Jun 2026 04:35AM UTC 46
85.7
GitHub Action Run
15 test-ubuntu-latest-3.9 - 27456614171.15 13 Jun 2026 04:35AM UTC 46
85.91
GitHub Action Run
Source Files on build 27456614171
  • Tree
  • List 46
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 5bf787a4 on github
  • Prev Build on master (#27145496393)
  • Next Build on master (#27569602789)
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