[issue12625] sporadic test_unittest failure

Charles-François Natali report at bugs.python.org
Sun Jul 24 01:13:09 CEST 2011


Charles-François Natali <neologix at free.fr> added the comment:

> So I'd say the easier solution is to skip this test on OpenSolaris,
> like it's done on FreeBSD6 since issue #8263.

Another option could be to add a dummy syscall, like os.getpid(),
before checking that the handler got called - this might be enough to
have the signal delivered.
Note that this kind of test assumes that the Python signal handler is
called right after the signal is delivered, i.e. every time from the
main eval loop (I think that's true with recent Python versions, is
that true with 2.7?).

----------

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


More information about the Python-bugs-list mailing list