fix genscript by copying the new implementation from the genscript package

--HG--
branch : trunk
This commit is contained in:
Ronny Pfannschmidt
2010-10-16 03:10:14 +02:00
parent 2a579217b8
commit 5d798feaf0
3 changed files with 57 additions and 62 deletions

View File

@@ -1,8 +1,6 @@
import py, os, sys
import subprocess
pytestmark = py.test.mark.xfail(run=False,
reason="XXX needs refactoring after pylib/pytest split")
def pytest_funcarg__standalone(request):
return request.cached_setup(scope="module", setup=lambda: Standalone(request))
@@ -20,7 +18,6 @@ class Standalone:
testdir.chdir()
return testdir._run(anypython, self.script, *args)
@pytestmark # XXX bug in application of global markers to generated functions?
def test_gen(testdir, anypython, standalone):
result = standalone.run(anypython, testdir, '-h')
assert result.ret == 0