slightly refine invocation of py.test: use the py lib that we got invoked with,

does away with the need to not-chdir some tests

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-01-02 11:57:42 +01:00
parent fd76cd8f41
commit a20e60aeae
2 changed files with 4 additions and 5 deletions

View File

@@ -4,8 +4,6 @@ import subprocess
def pytest_funcarg__standalone(request):
return request.cached_setup(scope="module", setup=lambda: Standalone(request))
pytestmark = py.test.mark.nochdir
class Standalone:
def __init__(self, request):
self.testdir = request.getfuncargvalue("testdir")