Commit 60dc673
Close the --report-jsonl file when the session ends
pytest_configure opens it and nothing ever closed it; it was left to interpreter
shutdown. Nothing is lost today, because every record is flush()ed as it is
written — which is exactly what makes this worth fixing rather than shrugging
at. The flush is per test phase on a file that gets thousands of them, so it is
the obvious thing for someone to remove when this run feels slow, and the day
that happens the last records of a run vanish with no error and the dashboard
quietly under-reports.
Noticed reviewing #120; not caused by it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 1d80ea0 commit 60dc673
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
133 | 144 | | |
134 | 145 | | |
135 | 146 | | |
| |||
0 commit comments