make test skipping more precise to fix a py32 test failure

This commit is contained in:
holger krekel 2011-08-18 22:52:02 +02:00
parent 6ca3c980bf
commit c426a67b0e
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class TestGeneralUsage:
assert result.ret != 0
assert "should be seen" in result.stdout.str()
@pytest.mark.skipif("not hasattr(os, 'symlink')")
@pytest.mark.skipif("not hasattr(py.path.local, 'mksymlinkto')")
def test_chdir(self, testdir):
testdir.tmpdir.join("py").mksymlinkto(py._pydir)
p = testdir.tmpdir.join("main.py")