(self)
| 592 | self.disable_stderr = disable_stderr |
| 593 | |
| 594 | def run(self): |
| 595 | set_faulthander_if_available() |
| 596 | if self.disable_stderr: |
| 597 | # Disable polluting stderr with errors that are supposed to happen. |
| 598 | with open(os.devnull, 'w') as devnull: |
| 599 | os.dup2(devnull.fileno(), sys.stderr.fileno()) |
| 600 | try: |
| 601 | super().run() |
| 602 | self._cconn.send(None) |
| 603 | except Exception: |
| 604 | self._cconn.send(ExceptionWrapper(sys.exc_info())) |
| 605 | raise |
| 606 | |
| 607 | def print_traces_of_all_threads(self): |
| 608 | assert self.is_alive(), "can only use print_traces_of_all_threads if the process is alive" |
nothing calls this directly
no test coverage detected