mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #11393: The fault handler handles also SIGABRT
This commit is contained in:
parent
bc6a4db66d
commit
d727e23243
5 changed files with 45 additions and 17 deletions
|
@ -112,6 +112,15 @@ faulthandler._sigsegv()
|
|||
3,
|
||||
'Segmentation fault')
|
||||
|
||||
def test_sigabrt(self):
|
||||
self.check_fatal_error("""
|
||||
import faulthandler
|
||||
faulthandler.enable()
|
||||
faulthandler._sigabrt()
|
||||
""".strip(),
|
||||
3,
|
||||
'Aborted')
|
||||
|
||||
@unittest.skipIf(sys.platform == 'win32',
|
||||
"SIGFPE cannot be caught on Windows")
|
||||
def test_sigfpe(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue