(self)
| 983 | |
| 984 | |
| 985 | def test_dump_c_stack_file(self): |
| 986 | import tempfile |
| 987 | |
| 988 | with tempfile.TemporaryFile("w+") as tmp: |
| 989 | faulthandler.dump_c_stack(file=tmp) |
| 990 | tmp.flush() # Just in case |
| 991 | tmp.seek(0) |
| 992 | self.check_c_stack(tmp.read().split("\n")) |
| 993 | |
| 994 | if __name__ == "__main__": |
| 995 | unittest.main() |
nothing calls this directly
no test coverage detected