Commit c2ad600
committed
gh-157170: Restore use_env() after test_use_prescr_screen in test_curses
curses.use_env() sets a process-wide ncurses default, not a property of
the screen it is called on. test_use_prescr_screen turned it off and
never turned it back on, so every newterm() in the rest of the process
took the screen size from terminfo alone. For a terminfo entry with no
size, such as "linux" on the CI runners, that makes newterm() return
NULL: test_curses failed with 138 errors in the parallel phase of every
Ubuntu CI run and only passed on the rerun, which skips ScreenTests.1 parent 7a562c4 commit c2ad600
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3459 | 3459 | | |
3460 | 3460 | | |
3461 | 3461 | | |
| 3462 | + | |
| 3463 | + | |
| 3464 | + | |
| 3465 | + | |
3462 | 3466 | | |
3463 | 3467 | | |
3464 | 3468 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments