Commit d40f9504 authored by Christian Heimes's avatar Christian Heimes

Solaris needs a readable file for shared lock

parent db396295
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment