]> granicus.if.org Git - python/commit
Implement #1578269. Patch by Jason R. Coombs.
authorBrian Curtin <brian.curtin@gmail.com>
Thu, 8 Jul 2010 21:39:08 +0000 (21:39 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Thu, 8 Jul 2010 21:39:08 +0000 (21:39 +0000)
commitd40e6f70a5edabffcbfff22912163520da3a29e2
treeef8d44ca974bf606f3437d2ce9977207b8748174
parent0dd8f7890a3396eaef8c740588c65af9422a65a5
Implement #1578269. Patch by Jason R. Coombs.

Added Windows support for os.symlink when run on Windows 6.0 or greater,
aka Vista. Previous Windows versions will raise NotImplementedError
when trying to symlink.

Includes numerous test updates and additions to test_os, including
a symlink_support module because of the fact that privilege escalation
is required in order to run the tests to ensure that the user is able
to create symlinks. By default, accounts do not have the required
privilege, so the escalation code will have to be exposed later (or
documented on how to do so). I'll be following up with that work next.

Note that the tests use ctypes, which was agreed on during the PyCon
language summit.
18 files changed:
Doc/library/os.path.rst
Doc/library/os.rst
Lib/ntpath.py
Lib/tarfile.py
Lib/test/support.py
Lib/test/symlink_support.py [new file with mode: 0644]
Lib/test/test_glob.py
Lib/test/test_httpservers.py
Lib/test/test_os.py
Lib/test/test_platform.py
Lib/test/test_posixpath.py
Lib/test/test_shutil.py
Lib/test/test_sys.py
Lib/test/test_sysconfig.py
Lib/test/test_tarfile.py
Misc/ACKS
Misc/NEWS
Modules/posixmodule.c