summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_faulthandler.py
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-09-01 21:08:21 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-09-01 21:08:21 (GMT)
commit3391e64482fa55c06b073cc76668bf1bf3e5c149 (patch)
tree77f3277488ca113e756ce46e3f45e5aa035c9893 /Lib/test/test_faulthandler.py
parente35dc5110f25ab4c43d6d73affc5b212e9be0262 (diff)
downloadcpython-3391e64482fa55c06b073cc76668bf1bf3e5c149.zip
cpython-3391e64482fa55c06b073cc76668bf1bf3e5c149.tar.gz
cpython-3391e64482fa55c06b073cc76668bf1bf3e5c149.tar.bz2
Issue #12868: Skip test_faulthandler.test_stack_overflow() on OpenBSD:
sigaltstack(2) doesn't work when linked with pthread.
Diffstat (limited to 'Lib/test/test_faulthandler.py')
-rw-r--r--Lib/test/test_faulthandler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_faulthandler.py b/Lib/test/test_faulthandler.py
index 331dd2e..977cb39 100644
--- a/Lib/test/test_faulthandler.py
+++ b/Lib/test/test_faulthandler.py
@@ -174,6 +174,9 @@ faulthandler._fatal_error(b'xyz')
2,
'xyz')
+ @unittest.skipIf(sys.platform.startswith('openbsd') and HAVE_THREADS,
+ "Issue #12868: sigaltstack() doesn't work on "
+ "OpenBSD if Python is compiled with pthread")
@unittest.skipIf(not hasattr(faulthandler, '_stack_overflow'),
'need faulthandler._stack_overflow()')
def test_stack_overflow(self):