[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

STINNER Victor report at bugs.python.org
Tue Apr 13 21:20:59 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> I suggest simply skipping the "offending" test on linuxthread
> platforms.

Good idea

> (perhaps as simple as checking for sys.platform == "linux2" 
> and signal.SIGRTMIN == 35)

I would prefer to rely on confstr():

import os
try:
    # 'linuxthreads-0.10' or 'NPTL 2.10.2'
    pthread = os.confstr("CS_GNU_LIBPTHREAD_VERSION")
    linuxthreads = pthread.startswith("linuxthreads")
except ValueError:
    linuxthreads = False

^^ this example requires attached patch for the two CS_GNU_* constants.

Which tests should be disabled?

----------
keywords: +patch
Added file: http://bugs.python.org/file16912/confstr_libpthread.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4970>
_______________________________________


More information about the Python-bugs-list mailing list