[svn r62998] tweak another place to not create random subdirs

--HG--
branch : trunk
This commit is contained in:
hpk
2009-03-17 14:10:17 +01:00
parent fc7abf0efe
commit 0def6737ac
2 changed files with 4 additions and 14 deletions
+2 -1
View File
@@ -373,7 +373,9 @@ class TestPyTest:
class TestInteractive:
def getspawn(self, tmpdir):
pexpect = py.test.importorskip("pexpect")
basetemp = tmpdir.mkdir("basetemp")
def spawn(cmd):
cmd = cmd + " --basetemp=" + str(basetemp)
return pexpect.spawn(cmd, logfile=tmpdir.join("spawn.out").open("w"))
return spawn
@@ -391,7 +393,6 @@ class TestInteractive:
i = 0
assert i == 1
""")
child = spawn("%s %s --pdb %s" % (py.std.sys.executable, pytestpath, p1))
child.timeout = EXPECTTIMEOUT
#child.expect(".*def test_1.*")