Repository navigation
Commit 8a6f706
committed
fix(view): ask before asserting when no dialog backend exists
The two cases in MessageBoxTests that drive the button search asserted against
whatever backend the session had. On the plain Ubuntu CI job there is no X
display, so piny_view.backend() is None and the dispatcher answers None for a
different reason -- the shape-rule case failed with "unexpectedly None" on a
machine where the rule was never asked.
Guard both: a session with no backend skips, saying so. Reproduced by running
the suite with both available() predicates forced False, which is what that job
sees: the first case fails, and with the guard the suite is OK (skipped=15).
The second case expects None and got None either way, so its guard is not
load-bearing; it is there so the pass cannot be earned by an absent backend.1 parent 0a28638 commit 8a6f706
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
211 | 217 | | |
212 | 218 | | |
213 | 219 | | |
| |||
257 | 263 | | |
258 | 264 | | |
259 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
260 | 271 | | |
261 | 272 | | |
262 | 273 | | |
| |||
0 commit comments