Reset the diag buffer between runs so back-to-back invocations in the same Python process (test runners, integration shells) don't carry stale state.
()
| 85 | |
| 86 | |
| 87 | def _reset_diags() -> None: |
| 88 | """Reset the diag buffer between runs so back-to-back invocations |
| 89 | in the same Python process (test runners, integration shells) |
| 90 | don't carry stale state.""" |
| 91 | _DIAGS_BUFFER.reset() |
| 92 | |
| 93 | |
| 94 | # --------------------------------------------------------------------------- |