[py-svn] r38713 - py/trunk/py/test/rsession/testing

fijal at codespeak.net fijal at codespeak.net
Tue Feb 13 16:34:18 CET 2007


Author: fijal
Date: Tue Feb 13 16:34:16 2007
New Revision: 38713

Modified:
   py/trunk/py/test/rsession/testing/test_rsession.py
Log:
Use self.source wherever applicable


Modified: py/trunk/py/test/rsession/testing/test_rsession.py
==============================================================================
--- py/trunk/py/test/rsession/testing/test_rsession.py	(original)
+++ py/trunk/py/test/rsession/testing/test_rsession.py	Tue Feb 13 16:34:16 2007
@@ -62,7 +62,7 @@
     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 @@
         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)



More information about the pytest-commit mailing list