summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2013-08-03 14:18:55 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2013-08-03 14:18:55 (GMT)
commitfb0ffa12fc79dfa4f97a61d9c32995551f995c1d (patch)
tree0196464fa32012b4828dedf4cf3d0c360d7dc10b /Lib
parent13371303351de5812c07d55dc29cacdef5cf1287 (diff)
parent1dfb9180a736c9033730ce05db696ee32c5a3d1c (diff)
downloadcpython-fb0ffa12fc79dfa4f97a61d9c32995551f995c1d.zip
cpython-fb0ffa12fc79dfa4f97a61d9c32995551f995c1d.tar.gz
cpython-fb0ffa12fc79dfa4f97a61d9c32995551f995c1d.tar.bz2
- Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger).
Diffstat (limited to 'Lib')
-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 9dd887a..b64eba2 100644
--- a/Lib/test/test_fcntl.py
+++ b/Lib/test/test_fcntl.py
@@ -32,6 +32,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)
else: