skip the symlink test on windows, win32/py32 does not support it without privs
This commit is contained in:
parent
369b7709f7
commit
974e4e3a9d
|
@ -66,11 +66,11 @@ def test_basetemp(testdir):
|
||||||
assert result.ret == 0
|
assert result.ret == 0
|
||||||
assert mytemp.join('hello').check()
|
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):
|
def test_tmpdir_keeps_symlinks(testdir):
|
||||||
realtemp = testdir.tmpdir.mkdir("myrealtemp")
|
realtemp = testdir.tmpdir.mkdir("myrealtemp")
|
||||||
linktemp = testdir.tmpdir.join("symlinktemp")
|
linktemp = testdir.tmpdir.join("symlinktemp")
|
||||||
os.symlink(str(realtemp), str(linktemp))
|
linktemp.mksymlinkto(realtemp)
|
||||||
p = testdir.makepyfile("""
|
p = testdir.makepyfile("""
|
||||||
def test_1(tmpdir):
|
def test_1(tmpdir):
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Reference in New Issue