[Python-checkins] cpython: Issue #15478: os.lchflags() is not always available when os.chflags() is
victor.stinner
python-checkins at python.org
Tue Nov 13 09:31:27 CET 2012
http://hg.python.org/cpython/rev/ee7b713fec71
changeset: 80417:ee7b713fec71
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Nov 13 09:31:51 2012 +0100
summary:
Issue #15478: os.lchflags() is not always available when os.chflags() is available
files:
Lib/test/test_os.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -2112,10 +2112,9 @@
if hasattr(os, "truncate"):
funcs.append((self.filenames, os.truncate, 0))
if hasattr(os, "chflags"):
- funcs.extend((
- (self.filenames, os.chflags, 0),
- (self.filenames, os.lchflags, 0),
- ))
+ funcs.append((self.filenames, os.chflags, 0))
+ if hasattr(os, "lchflags"):
+ funcs.append((self.filenames, os.lchflags, 0))
if hasattr(os, "chroot"):
funcs.append((self.filenames, os.chroot,))
if hasattr(os, "link"):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list