Kaydet (Commit) 2e7d4f0c authored tarafından Christian Heimes's avatar Christian Heimes

Solaris needs a readable file for shared lock

üst 782b8e4b
...@@ -116,7 +116,8 @@ class TestFcntl(unittest.TestCase): ...@@ -116,7 +116,8 @@ class TestFcntl(unittest.TestCase):
os.close(fd) os.close(fd)
def test_flock(self): 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() fileno = self.f.fileno()
fcntl.flock(fileno, fcntl.LOCK_SH) fcntl.flock(fileno, fcntl.LOCK_SH)
fcntl.flock(fileno, fcntl.LOCK_UN) 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