From: doko@ubuntu.com Date: Sat, 3 Aug 2013 14:12:33 +0000 (+0200) Subject: - Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger). X-Git-Tag: v3.4.0a1~3^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1dfb9180a736c9033730ce05db696ee32c5a3d1c;p=thirdparty%2FPython%2Fcpython.git - Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger). --- diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py index 09cb047298e8..e2a1b374cddc 100644 --- a/Lib/test/test_fcntl.py +++ b/Lib/test/test_fcntl.py @@ -35,6 +35,8 @@ def get_lockdata(): pid_t = 'l' lockdata = struct.pack(off_t + off_t + pid_t + 'hh', 0, 0, 0, fcntl.F_WRLCK, 0) + elif sys.platform.startswith('gnukfreebsd'): + lockdata = struct.pack('qqihhi', 0, 0, 0, fcntl.F_WRLCK, 0, 0) elif sys.platform in ['aix3', 'aix4', 'hp-uxB', 'unixware7']: lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0) elif sys.platform in ['os2emx']: diff --git a/Misc/NEWS b/Misc/NEWS index bd856962e047..27f97b07678d 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -230,6 +230,8 @@ IDLE Tests ----- +- Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger). + - Issue #18396: Fix spurious test failure in test_signal on Windows when faulthandler is enabled (Patch by Jeremy Kloth)