Charles-Francois Natali <neolo...@free.fr> added the comment:

> Will the modified test fail on platforms that don't define HAVE_SIGACTION?

Well, in theory, if the system has siginterrupt but not sigaction, it will 
fail. But as said, I don't think it's possible, see man siginterrupt:
"      This library routine uses an extension of the sigaction(2) system call
     that is not available in 4.2BSD, hence it should not be used if backward
     compatibility is needed."

and the test right now has this at the beginning:
if sys.platform[:3] in ('win', 'os2') or sys.platform == 'riscos':
    raise unittest.SkipTest("Can't test signal on %s" % \
                                   sys.platform)

So it pretty much assumes that any Unix system has siginterrupt, hence 
sigaction, so it should be safe.
So I'd say in theory, it will, but I don't think that siginterrupt can be 
available without sigaction anyway.
So feel free to modify the test, or not ;-)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8354>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to