On Tue, Oct 30, 2012 at 6:07 PM, victor.stinner
<python-check...@python.org> wrote:
> http://hg.python.org/cpython/rev/01cc9fb52887
> changeset:   80068:01cc9fb52887
> user:        Victor Stinner <victor.stin...@gmail.com>
> date:        Wed Oct 31 01:04:10 2012 +0100
> summary:
>   Issue #15478: Fix test_os on Windows (os.chown is missing)
>
> files:
>   Lib/test/test_os.py |  3 ++-
>   1 files changed, 2 insertions(+), 1 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
> @@ -2069,7 +2069,6 @@
>          funcs = [
>              (os.chdir,),
>              (os.chmod, 0o777),
> -            (os.chown, 0, 0),
>              (os.lchown, 0, 0),
>              (os.listdir,),
>              (os.lstat,),
> @@ -2081,6 +2080,8 @@
>              (os.truncate, 0),
>              (os.unlink,),
>          ]
> +        if hasattr(os, "chown"):
> +            funcs.append((os.chown, 0, 0))
>          if sys.platform == "win32":
>              funcs.extend((
>                  (os._getfullpathname,),

Also missing on Windows is os.lchown.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to