diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-01 10:13:55 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-01 10:13:55 (GMT) |
commit | d727e23243ab5479b03aab1f924ca7ec0bccbcb6 (patch) | |
tree | c05dc8b13da2bebd300684b462af046384c2379a /Lib | |
parent | bc6a4db66d576b29462a965e78f4d4a1dce494f0 (diff) | |
download | cpython-d727e23243ab5479b03aab1f924ca7ec0bccbcb6.zip cpython-d727e23243ab5479b03aab1f924ca7ec0bccbcb6.tar.gz cpython-d727e23243ab5479b03aab1f924ca7ec0bccbcb6.tar.bz2 |
Issue #11393: The fault handler handles also SIGABRT
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_faulthandler.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_faulthandler.py b/Lib/test/test_faulthandler.py index f26269c..1a79c50 100644 --- a/Lib/test/test_faulthandler.py +++ b/Lib/test/test_faulthandler.py @@ -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): |