]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #12821: Fix test_fcntl failures on OpenBSD 5.
authorCharles-François Natali <neologix@free.fr>
Tue, 23 Aug 2011 17:42:02 +0000 (19:42 +0200)
committerCharles-François Natali <neologix@free.fr>
Tue, 23 Aug 2011 17:42:02 +0000 (19:42 +0200)
Lib/test/test_fcntl.py
Misc/NEWS

index c8ea7b7ea51e4ca945264a973b2e586d5482ac58..df0939151f058d61e3bb164f64a2f1f464c34dd8 100644 (file)
@@ -27,12 +27,8 @@ def get_lockdata():
         else:
             start_len = "qq"
 
-    if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3',
-                        'Darwin1.2', 'darwin',
-                        'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
-                        'freebsd6', 'freebsd7', 'freebsd8',
-                        'bsdos2', 'bsdos3', 'bsdos4',
-                        'openbsd', 'openbsd2', 'openbsd3', 'openbsd4'):
+    if (sys.platform.startswith(('netbsd', 'freebsd', 'openbsd', 'bsdos'))
+        or sys.platform == 'darwin'):
         if struct.calcsize('l') == 8:
             off_t = 'l'
             pid_t = 'i'
index 0701d6f779f36a9ec69f8d018703505f62471e1f..a5bc4aeaa79beb7a943e570b1422e341953f5801 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -183,6 +183,8 @@ Tools/Demos
 Tests
 -----
 
+- Issue #12821: Fix test_fcntl failures on OpenBSD 5.
+
 - Issue #12331: The test suite for lib2to3 can now run from an installed
   Python.