[issue6419] Broken test_kqueue.py on OpenBSD

Charles-François Natali report at bugs.python.org
Sun Mar 3 15:22:10 CET 2013


Charles-François Natali added the comment:

The test assumes that the input flags (EV_ADD, EV_ENABLE...) will be returned in the output events. It's apparently not the case on OpenBSD and NetBSD (and probably on OS-X neither, because this check is disabled on this platform), and I can't see anything in the kqueue man pages hinting to this behavior (only specific flags will be set on output, like EV_ERROR). Knowing which flag was specified is not really useful actually.

The patch attached just removes this check (we keep checking the file descriptors and filter, of course).

----------
keywords: +needs review, patch
Added file: http://bugs.python.org/file29296/kqueue_flags.diff

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


More information about the Python-bugs-list mailing list