(self, _exc_type: Any, _exc_val: Any, _exc_tb: Any)
| 399 | return self |
| 400 | |
| 401 | def __exit__(self, _exc_type: Any, _exc_val: Any, _exc_tb: Any) -> None: |
| 402 | # Wait for process to complete if still running |
| 403 | if self._proc.poll() is None: |
| 404 | try: |
| 405 | self._proc.wait(timeout=5) |
| 406 | except subprocess.TimeoutExpired: |
| 407 | self._proc.kill() |
| 408 | self._proc.wait() |
| 409 | # Unregister from tracking |
| 410 | self.unregister() |
| 411 | |
| 412 | |
| 413 | def run_pio_tracked( |
nothing calls this directly
no test coverage detected