(self, release_gil)
| 278 | |
| 279 | @unittest.skipIf(_testcapi is None, 'need _testcapi') |
| 280 | def check_fatal_error_func(self, release_gil): |
| 281 | # Test that Py_FatalError() dumps a traceback |
| 282 | with support.SuppressCrashReport(): |
| 283 | self.check_fatal_error(f""" |
| 284 | import _testcapi |
| 285 | _testcapi.fatal_error(b'xyz', {release_gil}) |
| 286 | """, |
| 287 | 2, |
| 288 | 'xyz', |
| 289 | func='_testcapi_fatal_error_impl', |
| 290 | py_fatal_error=True) |
| 291 | |
| 292 | def test_fatal_error(self): |
| 293 | self.check_fatal_error_func(False) |
no test coverage detected