From 97a82f2df2855e8ac9db92241c1dd03d35ef720f Mon Sep 17 00:00:00 2001 From: fijal Date: Tue, 13 Feb 2007 16:34:16 +0100 Subject: [PATCH] [svn r38713] Use self.source wherever applicable --HG-- branch : trunk --- py/test/rsession/testing/test_rsession.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/test/rsession/testing/test_rsession.py b/py/test/rsession/testing/test_rsession.py index f7ff459a3..d7938d169 100644 --- a/py/test/rsession/testing/test_rsession.py +++ b/py/test/rsession/testing/test_rsession.py @@ -62,7 +62,7 @@ class TestRSessionRemote(DirSetup, BasicRsessionTest): def test_distribution_rsync_roots_example(self): destdir = py.test.ensuretemp("example_dist_destdir") subdir = "sub_example_dist" - tmpdir = py.test.ensuretemp("example_distribution") + tmpdir = self.source tmpdir.ensure(subdir, "conftest.py").write(py.code.Source(""" dist_hosts = ["localhost:%s"] dist_rsync_roots = ["%s", "../py"] @@ -118,7 +118,7 @@ class TestRSessionRemote(DirSetup, BasicRsessionTest): hosts = [HostInfo('localhost:%s' % self.dest)] setup_events = [] teardown_events = [] - tmpdir = py.test.ensuretemp("emptyconftest") + tmpdir = self.source config = py.test.config._reparse([tmpdir]) hm = HostManager(config, hosts) nodes = hm.setup_hosts(setup_events.append)