From: Christian Heimes Date: Sat, 7 Dec 2013 17:19:21 +0000 (+0100) Subject: Solaris needs a readable file for shared lock X-Git-Tag: v3.4.0b2~310 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e7d4f0cbf4b976aedbf91794f3da9ea25de17fb;p=python Solaris needs a readable file for shared lock --- diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py index 837fc16569..8e55082071 100644 --- a/Lib/test/test_fcntl.py +++ b/Lib/test/test_fcntl.py @@ -116,7 +116,8 @@ class TestFcntl(unittest.TestCase): os.close(fd) def test_flock(self): - self.f = open(TESTFN, 'wb') + # Solaris needs readable file for shared lock + self.f = open(TESTFN, 'wb+') fileno = self.f.fileno() fcntl.flock(fileno, fcntl.LOCK_SH) fcntl.flock(fileno, fcntl.LOCK_UN)