cpython: 01cc9fb52887 (original) (raw)
Mercurial > cpython
changeset 80068:01cc9fb52887
Issue #15478: Fix test_os on Windows (os.chown is missing) [#15478]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Wed, 31 Oct 2012 01:04:10 +0100 |
parents | dabe2486e2ce |
children | ef87bd0797de |
files | Lib/test/test_os.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_os.py 3 |
line wrap: on
line diff
--- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -2069,7 +2069,6 @@ class OSErrorTests(unittest.TestCase): funcs = [ (os.chdir,), (os.chmod, 0o777),
(os.chown, 0, 0),[](#l1.7) (os.lchown, 0, 0),[](#l1.8) (os.listdir,),[](#l1.9) (os.lstat,),[](#l1.10)
@@ -2081,6 +2080,8 @@ class OSErrorTests(unittest.TestCase): (os.truncate, 0), (os.unlink,), ]
if hasattr(os, "chown"):[](#l1.15)
funcs.append((os.chown, 0, 0))[](#l1.16) if sys.platform == "win32":[](#l1.17) funcs.extend(([](#l1.18) (os._getfullpathname,),[](#l1.19)