Browse Source

Solaris needs a readable file for shared lock

pull/224/head
Christian Heimes 12 years ago
parent
commit
2e7d4f0cbf
  1. 3
      Lib/test/test_fcntl.py

3
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)

Loading…
Cancel
Save