[Python-checkins] cpython (3.3): - Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger).

matthias.klose python-checkins at python.org
Sat Aug 3 16:19:08 CEST 2013


http://hg.python.org/cpython/rev/c503cea0e8c2
changeset:   84986:c503cea0e8c2
branch:      3.3
parent:      84984:b7834800562f
user:        doko at ubuntu.com
date:        Sat Aug 03 16:12:33 2013 +0200
summary:
  - Fix a fcntl test case on KFreeBSD, Debian #708653 (Petr Salinger).

files:
  Lib/test/test_fcntl.py |  2 ++
  Misc/NEWS              |  2 ++
  2 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py
--- a/Lib/test/test_fcntl.py
+++ b/Lib/test/test_fcntl.py
@@ -35,6 +35,8 @@
             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
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -230,6 +230,8 @@
 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)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list