(self)
| 322 | |
| 323 | @skip_segfault_on_android |
| 324 | def test_enable_file(self): |
| 325 | with temporary_filename() as filename: |
| 326 | self.check_fatal_error(""" |
| 327 | import faulthandler |
| 328 | output = open({filename}, 'wb') |
| 329 | faulthandler.enable(output) |
| 330 | faulthandler._sigsegv() |
| 331 | """.format(filename=repr(filename)), |
| 332 | 4, |
| 333 | 'Segmentation fault', |
| 334 | filename=filename) |
| 335 | |
| 336 | @unittest.skipIf(sys.platform == "win32", |
| 337 | "subprocess doesn't support pass_fds on Windows") |
nothing calls this directly
no test coverage detected