Issue #12868: Skip test_faulthandler.test_stack_overflow() on OpenBSD:

sigaltstack(2) doesn't work when linked with pthread.
This commit is contained in:
Charles-François Natali 2011-09-01 23:08:21 +02:00
parent e35dc5110f
commit 3391e64482
1 changed files with 3 additions and 0 deletions

View File

@ -174,6 +174,9 @@ faulthandler._fatal_error(b'xyz')
2, 2,
'xyz') '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'), @unittest.skipIf(not hasattr(faulthandler, '_stack_overflow'),
'need faulthandler._stack_overflow()') 'need faulthandler._stack_overflow()')
def test_stack_overflow(self): def test_stack_overflow(self):