(self)
| 346 | |
| 347 | @skip_segfault_on_android |
| 348 | def test_enable_file(self): |
| 349 | with temporary_filename() as filename: |
| 350 | self.check_fatal_error(""" |
| 351 | import faulthandler |
| 352 | output = open({filename}, 'wb') |
| 353 | faulthandler.enable(output) |
| 354 | faulthandler._sigsegv() |
| 355 | """.format(filename=repr(filename)), |
| 356 | 4, |
| 357 | 'Segmentation fault', |
| 358 | filename=filename) |
| 359 | |
| 360 | @unittest.skipIf(sys.platform == "win32", |
| 361 | "subprocess doesn't support pass_fds on Windows") |
nothing calls this directly
no test coverage detected