[svn r62993] * moving ensuretemp to config object

* adding --basetemp option
* added/rewrote some tests

--HG--
branch : trunk
This commit is contained in:
hpk
2009-03-17 11:29:45 +01:00
parent 6f1eca5e4a
commit 7ed26c2929
7 changed files with 49 additions and 40 deletions

View File

@@ -234,6 +234,9 @@ class TmpTestdir:
return self.run(script, *args)
def runpytest(self, *args):
p = py.path.local.make_numbered_dir(prefix="runpytest-",
keep=None, rootdir=self.tmpdir)
args = ('--basetemp=%s' % p, ) + args
return self.runpybin("py.test", *args)
class Event: