summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authordoko <doko@ubuntu.com>2013-08-03 16:12:33 +0200
committerdoko <doko@ubuntu.com>2013-08-03 16:12:33 +0200
commitc33350607154f4a2f775ff1a751cc8df1e3d49e7 (patch)
tree702cb0c9f8a12b68cc875c2459bce9d6fb32afc6 /Lib/test
parent8005e233c3bc69cdc09758067e0b8f0642f71646 (diff)
downloadcpython-c33350607154f4a2f775ff1a751cc8df1e3d49e7.tar.gz
- Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger).
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_fcntl.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py
index 09cb047298..e2a1b374cd 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']: