mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Solaris needs a readable file for shared lock
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user