From c426a67b0ebf832d4d279a6b6d99d40fa85a46f4 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Thu, 18 Aug 2011 22:52:02 +0200 Subject: [PATCH] make test skipping more precise to fix a py32 test failure --- testing/acceptance_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index b964a0aea..6b815e4d7 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -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")