skip the symlink test on windows, win32/py32 does not support it without privs

This commit is contained in:
holger krekel 2011-11-07 22:00:12 +00:00
parent 369b7709f7
commit 974e4e3a9d
1 changed files with 2 additions and 2 deletions

View File

@ -66,11 +66,11 @@ def test_basetemp(testdir):
assert result.ret == 0
assert mytemp.join('hello').check()
@pytest.mark.skipif("not hasattr(os, 'symlink')")
@pytest.mark.skipif("not hasattr(py.path.local, 'mksymlinkto')")
def test_tmpdir_keeps_symlinks(testdir):
realtemp = testdir.tmpdir.mkdir("myrealtemp")
linktemp = testdir.tmpdir.join("symlinktemp")
os.symlink(str(realtemp), str(linktemp))
linktemp.mksymlinkto(realtemp)
p = testdir.makepyfile("""
def test_1(tmpdir):
import os