Browse Source

Issue #15478: os.lchflags() is not always available when os.chflags() is available

pull/224/head
Victor Stinner 14 years ago
parent
commit
ee36c24d15
  1. 7
      Lib/test/test_os.py

7
Lib/test/test_os.py

@ -2112,10 +2112,9 @@ class OSErrorTests(unittest.TestCase):
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"):

Loading…
Cancel
Save