Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6cea35a

Browse files
author
Charles-François Natali
committed
Issue #12821: Fix test_fcntl failures on OpenBSD 5.
1 parent a5c92b4 commit 6cea35a

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

Lib/test/test_fcntl.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@ def get_lockdata():
2323
else:
2424
start_len = "qq"
2525

26-
if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3',
27-
'Darwin1.2', 'darwin',
28-
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
29-
'freebsd6', 'freebsd7', 'freebsd8',
30-
'bsdos2', 'bsdos3', 'bsdos4',
31-
'openbsd', 'openbsd2', 'openbsd3', 'openbsd4'):
26+
if (sys.platform.startswith(('netbsd', 'freebsd', 'openbsd', 'bsdos'))
27+
or sys.platform == 'darwin'):
3228
if struct.calcsize('l') == 8:
3329
off_t = 'l'
3430
pid_t = 'i'

Misc/NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ Library
3131
- Issue #12650: Fix a race condition where a subprocess.Popen could leak
3232
resources (FD/zombie) when killed at the wrong time.
3333

34+
Tests
35+
-----
36+
37+
- Issue #12821: Fix test_fcntl failures on OpenBSD 5.
38+
39+
3440
What's New in Python 3.2.2?
3541
===========================
3642

0 commit comments

Comments
 (0)