()
| 96 | return |
| 97 | |
| 98 | def _drain() -> None: |
| 99 | if proc.poll() is None: |
| 100 | try: |
| 101 | proc.kill() |
| 102 | except (OSError, ProcessLookupError): # pragma: no cover |
| 103 | return |
| 104 | try: |
| 105 | proc.communicate(timeout=0.1) |
| 106 | except Exception: # pragma: no cover |
| 107 | pass |
| 108 | |
| 109 | atexit.register(_drain) |
| 110 |
nothing calls this directly
no test coverage detected