diff options
author | doko@ubuntu.com <doko@ubuntu.com> | 2013-08-03 14:12:33 (GMT) |
---|---|---|
committer | doko@ubuntu.com <doko@ubuntu.com> | 2013-08-03 14:12:33 (GMT) |
commit | 1dfb9180a736c9033730ce05db696ee32c5a3d1c (patch) | |
tree | 62059f482216594fcb604b6dbe595419e8e05e4c /Lib | |
parent | 60b3ac7482aa7ca4e6f0f66792160d38b48d1914 (diff) | |
download | cpython-1dfb9180a736c9033730ce05db696ee32c5a3d1c.zip cpython-1dfb9180a736c9033730ce05db696ee32c5a3d1c.tar.gz cpython-1dfb9180a736c9033730ce05db696ee32c5a3d1c.tar.bz2 |
- Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger).
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_fcntl.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py index 09cb047..e2a1b37 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']: |