summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fcntl.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-12-07 17:19:21 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-12-07 17:19:21 (GMT)
commit2e7d4f0cbf4b976aedbf91794f3da9ea25de17fb (patch)
tree918c38c4762283440a7172c111c7335ba4059b0a /Lib/test/test_fcntl.py
parent782b8e4b888628a11af0f1649a5dd2a478664206 (diff)
downloadcpython-2e7d4f0cbf4b976aedbf91794f3da9ea25de17fb.zip
cpython-2e7d4f0cbf4b976aedbf91794f3da9ea25de17fb.tar.gz
cpython-2e7d4f0cbf4b976aedbf91794f3da9ea25de17fb.tar.bz2
Solaris needs a readable file for shared lock
Diffstat (limited to 'Lib/test/test_fcntl.py')
-rw-r--r--Lib/test/test_fcntl.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py
index 837fc16..8e55082 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)