From 974e4e3a9d5a87f77bd2c542e8f551fc62e832eb Mon Sep 17 00:00:00 2001 From: holger krekel Date: Mon, 7 Nov 2011 22:00:12 +0000 Subject: [PATCH] skip the symlink test on windows, win32/py32 does not support it without privs --- testing/test_tmpdir.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/test_tmpdir.py b/testing/test_tmpdir.py index b0242511f..5e67e94f6 100644 --- a/testing/test_tmpdir.py +++ b/testing/test_tmpdir.py @@ -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