summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-10-31 00:04:10 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-10-31 00:04:10 (GMT)
commitf69055efba0019ecdccfbd6497361f4d7755c0d6 (patch)
treec2dd5713fd8a29a8c7a48363401b99fea1bf3ce3 /Lib/test/test_os.py
parent7a6d7cf3db49563132532529839fa82408444d89 (diff)
downloadcpython-f69055efba0019ecdccfbd6497361f4d7755c0d6.zip
cpython-f69055efba0019ecdccfbd6497361f4d7755c0d6.tar.gz
cpython-f69055efba0019ecdccfbd6497361f4d7755c0d6.tar.bz2
Issue #15478: Fix test_os on Windows (os.chown is missing)
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r--Lib/test/test_os.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index e5864ed..0d1f60a 100644
--- 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),
(os.lchown, 0, 0),
(os.listdir,),
(os.lstat,),
@@ -2081,6 +2080,8 @@ class OSErrorTests(unittest.TestCase):
(os.truncate, 0),
(os.unlink,),
]
+ if hasattr(os, "chown"):
+ funcs.append((os.chown, 0, 0))
if sys.platform == "win32":
funcs.extend((
(os._getfullpathname,),