summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-04-01 10:13:55 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-04-01 10:13:55 (GMT)
commitd727e23243ab5479b03aab1f924ca7ec0bccbcb6 (patch)
treec05dc8b13da2bebd300684b462af046384c2379a /Lib
parentbc6a4db66d576b29462a965e78f4d4a1dce494f0 (diff)
downloadcpython-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.py9
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):