(config: Config)
| 33 | |
| 34 | |
| 35 | def pytest_unconfigure(config: Config) -> None: |
| 36 | import faulthandler |
| 37 | |
| 38 | faulthandler.disable() |
| 39 | # Close the dup file installed during pytest_configure. |
| 40 | if fault_handler_stderr_key in config.stash: |
| 41 | config.stash[fault_handler_stderr_key].close() |
| 42 | del config.stash[fault_handler_stderr_key] |
| 43 | if config.stash.get(fault_handler_originally_enabled_key, False): |
| 44 | # Re-enable the faulthandler if it was originally enabled. |
| 45 | faulthandler.enable(file=get_stderr_fileno()) |
| 46 | |
| 47 | |
| 48 | def get_stderr_fileno() -> int: |
nothing calls this directly
no test coverage detected