tests/test-symlink-os-yes-fs-no.py
changeset 18178 6ae45c0b4625
parent 17015 73d20de5f30b
child 28916 3b453513f1fe
equal deleted inserted replaced
18177:203b7a759218 18178:6ae45c0b4625
    22 commands.status(u, repo)
    22 commands.status(u, repo)
    23 
    23 
    24 # now disable symlink support -- this is what os.symlink would do on a
    24 # now disable symlink support -- this is what os.symlink would do on a
    25 # non-symlink file system
    25 # non-symlink file system
    26 def symlink_failure(src, dst):
    26 def symlink_failure(src, dst):
    27     raise OSError, (1, "Operation not permitted")
    27     raise OSError(1, "Operation not permitted")
    28 os.symlink = symlink_failure
    28 os.symlink = symlink_failure
    29 
    29 
    30 # dereference links as if a Samba server has exported this to a
    30 # dereference links as if a Samba server has exported this to a
    31 # Windows client
    31 # Windows client
    32 for f in 'test0/a.lnk', 'test0/d/b.lnk':
    32 for f in 'test0/a.lnk', 'test0/d/b.lnk':