• Brian Curtin's avatar
    Implement #1578269. Patch by Jason R. Coombs. · d40e6f70
    Brian Curtin yazdı
    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.
    d40e6f70
test_shutil.py 31.9 KB