消息 [103076]
> 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? |
|
| 日期 |
用户 |
动作 |
参数 |
| 2010-04-13 19:20:59 | vstinner | 修改 | recipients:
+ vstinner, nnorwitz, mark.dickinson, pitrou, r.david.murray, srid, skrah, neologix |
| 2010-04-13 19:20:59 | vstinner | 修改 | messageid: <1271186459.44.0.419788454588.issue4970@psf.upfronthosting.co.za> |
| 2010-04-13 19:20:57 | vstinner | 链接 | issue4970 messages |
| 2010-04-13 19:20:57 | vstinner | 创建 | |
|