(self)
| 337 | "subprocess doesn't support pass_fds on Windows") |
| 338 | @skip_segfault_on_android |
| 339 | def test_enable_fd(self): |
| 340 | with tempfile.TemporaryFile('wb+') as fp: |
| 341 | fd = fp.fileno() |
| 342 | self.check_fatal_error(""" |
| 343 | import faulthandler |
| 344 | import sys |
| 345 | faulthandler.enable(%s) |
| 346 | faulthandler._sigsegv() |
| 347 | """ % fd, |
| 348 | 4, |
| 349 | 'Segmentation fault', |
| 350 | fd=fd) |
| 351 | |
| 352 | @skip_segfault_on_android |
| 353 | def test_enable_single_thread(self): |
nothing calls this directly
no test coverage detected