Commit 03f0d8c
Collect each test's screen reference cycle in TestCurses
Each test's newterm() screen forms a window<->screen reference cycle, reclaimed
only by the cyclic GC. Collect it while the screen is still current, so the
windows' delwin() succeeds; collected later, on a non-current screen, it fails
(an unraisable error that trips --fail-env-changed on macOS).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 2165c49 commit 03f0d8c
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
0 commit comments