This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_fcntl failed on OpenBSD 5.x
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.2, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: neologix, python-dev, rpointel, vstinner
Priority: normal Keywords:

Created on 2011-08-23 06:58 by rpointel, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
patch-Lib_test_test_fcntl_py rpointel, 2011-08-23 06:58
Messages (6)
msg142784 - (view) Author: Remi Pointel (rpointel) * Date: 2011-08-23 06:58
Hello,

test_fcntl failed on OpenBSD 5.0.
It's ok when we add openbsd5 in the tuple of sys.platform (patch attached).

Thanks a lot,

Remi.
msg142785 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2011-08-23 07:06
Note that it's been fixed in default with the recent sys.platform refactoring:

    26     if (sys.platform.startswith(('netbsd', 'freebsd', 'openbsd', 'bsdos'))
    27         or sys.platform == 'darwin'):
    28         if struct.calcsize('l') == 8:

I'll commit a patch for 2.7 and 3.2.
msg142786 - (view) Author: Remi Pointel (rpointel) * Date: 2011-08-23 07:11
Thanks a lot, I prefer to use sys.platform.startswith too.

Remi.
msg142843 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-08-23 17:41
New changeset f1f1d9f4b14e by Charles-François Natali in branch '2.7':
Issue #12821: Fix test_fcntl failures on OpenBSD 5.
http://hg.python.org/cpython/rev/f1f1d9f4b14e
msg142844 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-08-23 17:45
New changeset 9157a9e77740 by Charles-François Natali in branch '3.2':
Issue #12821: Fix test_fcntl failures on OpenBSD 5.
http://hg.python.org/cpython/rev/9157a9e77740
msg142846 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2011-08-23 17:51
Committed to 3.2 and 2.7.
Rémi, thanks for the report.
History
Date User Action Args
2022-04-11 14:57:21adminsetgithub: 57030
2011-08-23 17:51:25neologixsetstatus: open -> closed
resolution: fixed
messages: + msg142846

stage: needs patch -> resolved
2011-08-23 17:45:38python-devsetmessages: + msg142844
2011-08-23 17:44:10vstinnersetnosy: + vstinner
2011-08-23 17:41:06python-devsetnosy: + python-dev
messages: + msg142843
2011-08-23 07:11:06rpointelsetmessages: + msg142786
2011-08-23 07:06:33neologixsettype: behavior
components: + Tests
versions: - Python 3.3
nosy: + neologix

messages: + msg142785
stage: needs patch
2011-08-23 06:58:07rpointelcreate