[issue12196] add pipe2() to the os module
STINNER Victor
report at bugs.python.org
Mon May 30 00:00:12 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> If've added a test to skip this test on Linux kernels older than 2.6.27:
> like O_CLOEXEC, the problem is that the libc defines pipe2() while the
> kernel doesn't support it, so when syscall() is called it bails out with
> ENOSYS. (This buildbot should really have its libc/kernel upgraded...)
You may add the issue number of your commit changelog, so a comment is
generated directly in the issue.
support.linux_version() may be changed for requires_linux_version(2, 6, 27),
but linux_version() is always used in tests to check the Linux version.
requires_linux_version() would only raise a SkipTest if the OS is Linux and if
the kernel is lesser than the specified version.
By the way, I like the new os.pipe2() function! You may want to document it in
the "What's new in Python 3.3" doc (just mention the new function, the
document will be rephrased later).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12196>
_______________________________________
More information about the Python-bugs-list
mailing list