fixes for new internal pytest tmpdir handling

This commit is contained in:
holger krekel
2010-11-22 11:41:23 +01:00
parent c924dda30f
commit 3fc03c8c8e
5 changed files with 24 additions and 26 deletions

View File

@@ -72,10 +72,10 @@ class TestDistribution:
def test_basetemp_in_subprocesses(self, testdir):
p1 = testdir.makepyfile("""
def test_send(pytestconfig):
bt = pytestconfig.getbasetemp()
assert bt.basename.startswith("popen-")
""")
def test_send(tmpdir):
import py
assert tmpdir.relto(py.path.local(%r)), tmpdir
""" % str(testdir.tmpdir))
result = testdir.runpytest(p1, "-n1")
assert result.ret == 0
result.stdout.fnmatch_lines([