mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Solaris needs a readable file for shared lock
This commit is contained in:
parent
782b8e4b88
commit
2e7d4f0cbf
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue