Commit b3792c3
Clean up the panel created by test_userptr_segfault
Unlike the sibling panel tests, test_userptr_segfault never removed its panel,
so the window it wrapped was reachable only through a panel<->userptr __del__
cycle and was collected during a much later test, where delwin() failed on
macOS (--fail-env-changed). Give it the addCleanup(self._delete_panels, ...)
the other panel tests use; the per-test screen.close() in setUp then keeps the
teardown free of lingering cycles.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 6fb6465 commit b3792c3
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
| |||
1196 | 1195 | | |
1197 | 1196 | | |
1198 | 1197 | | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
1199 | 1202 | | |
1200 | 1203 | | |
1201 | 1204 | | |
| |||
0 commit comments