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

urwid / urwid / 32854982857
94%

Build:
DEFAULT BRANCH: master
Ran 25 Aug 2026 01:44PM UTC
Jobs 3
Files 61
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

25 Aug 2026 01:42PM UTC coverage: 70.395% (+0.6%) from 69.806%
32854982857

push

travis-pro

web-flow
Fix sizing related issues (#1250)

## Fixes
- **`Overlay`: oversized `width=PACK` no longer raises `WidgetError`.**
  `render()` passed the negative `left`/`right` padding to `CanvasOverlay` as a *position*,
  shifting the already-trimmed top canvas off the left edge
  and producing a canvas wider than the requested size.
  The padding itself is left untouched
  (negative values are the correct coordinate model for clipped content,
  and `mouse_event`/`get_cursor_coords` rely on it);
  only the overlay position is clamped.
- **`Overlay`: `PACK` height is measured at the width the top widget actually gets**
  (`maxcol - left - right`) instead of the overlay's full width.
  Fixes wrong vertical centring and dead mouse clicks below wrapped text.
  Since `render`, `keypress`, `mouse_event` and `get_cursor_coords`
  all route through `calculate_padding_filler`,
  all four become consistent, and it now agrees with `Overlay.rows()`.
  Fixes #471.
- **`Canvas.set_pop_up`: enforces its documented preconditions.**
  `left`/`top` `>= 0` and `overlay_width`/`overlay_height` `> 0`
  were documented but unchecked,
  so bad values either silently mis-placed the pop-up
  or surfaced later as a bare `ValueError: 0`.
  Now raises `CanvasError` with a clear message.
- **`Filler.sizing()`: warns when a `PACK` height is paired with a non-FLOW body.**
  Such a `Filler` declared `{BOX, FLOW}`
  but failed at *every* size with an opaque
  `AttributeError: '…' object has no attribute 'rows'`.
  Follows the existing `Padding.sizing()` pattern
  (warn via the new `FillerWarning`, returned set unchanged).
  Relates to #247.
- **`PopUpLauncher.create_pop_up`: documents that the pop-up must accept a box size**,
  since `PopUpTarget` always overlays with `GIVEN`/`GIVEN`.
  Previously a flow pop-up failed with an unexplained
  `ValueError: too many values to unpack`.

3081 of 4930 branches covered (62.49%)

Branch coverage included in aggregate %.

10 of 10 new or added lines in 3 files covered. (100.0%)

2 existing lines in 2 files now uncovered.

8563 of 11611 relevant lines covered (73.75%)

2.21 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
43.43
-0.23% urwid/display/web.py
1
90.65
-0.93% urwid/event_loop/select_loop.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.13-ubuntu-latest" - 32854982857.1 25 Aug 2026 01:44PM UTC 61
70.33
Travis Job
2 run-3.9-ubuntu-latest" - 32854982857.2 25 Aug 2026 01:44PM UTC 61
70.34
Travis Job
3 run-3.12-ubuntu-latest" - 32854982857.3 25 Aug 2026 01:44PM UTC 61
70.33
Travis Job
Source Files on build 32854982857
  • Tree
  • List 61
  • Changed 6
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Travis Build #32854982857
  • ad00a2b0 on github
  • Prev Build on 4.0.12 (#32836075617)
  • Next Build on master (#32855209033)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc