[Python-checkins] cpython: Solaris needs a readable file for shared lock
christian.heimes
python-checkins at python.org
Sat Dec 7 18:19:29 CET 2013
http://hg.python.org/cpython/rev/4e9fb4ce7cf9
changeset: 87809:4e9fb4ce7cf9
user: Christian Heimes <christian at cheimes.de>
date: Sat Dec 07 18:19:21 2013 +0100
summary:
Solaris needs a readable file for shared lock
files:
Lib/test/test_fcntl.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py
--- a/Lib/test/test_fcntl.py
+++ b/Lib/test/test_fcntl.py
@@ -116,7 +116,8 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list