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

fijal at codespeak.net fijal at codespeak.net
Wed Feb 7 17:49:16 CET 2007


Author: fijal
Date: Wed Feb  7 17:49:14 2007
New Revision: 38082

Modified:
   py/trunk/py/test/rsession/testing/test_rsession.py
Log:
Fix reporting (and a test for that)


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	Wed Feb  7 17:49:14 2007
@@ -115,7 +115,7 @@
         assert tb[0].source.find("execute") != -1
         
     def test_setup_teardown_ssh(self):
-        hosts = [HostInfo('localhost')]
+        hosts = [HostInfo('localhost:%s' % self.dest)]
         setup_events = []
         teardown_events = []
         tmpdir = py.test.ensuretemp("emptyconftest") 
@@ -141,7 +141,7 @@
         assert len(teardown_wait_ends) == len(hosts)
 
     def test_setup_teardown_run_ssh(self):
-        hosts = [HostInfo('localhost')]
+        hosts = [HostInfo('localhost:%s' % self.dest)]
         allevents = []
         
         hm = HostManager(self.config, hosts=hosts)
@@ -181,13 +181,13 @@
         """ Tests if nice level behaviour is ok
         """
         allevents = []
-        hosts = [HostInfo('localhost')]
+        hosts = [HostInfo('localhost:%s' % self.dest)]
         tmpdir = py.test.ensuretemp("nice")
         tmpdir.ensure("__init__.py")
         tmpdir.ensure("conftest.py").write(py.code.Source("""
-        dist_hosts = ['localhost']
+        dist_hosts = ['localhost:%s']
         dist_nicelevel = 10
-        """))
+        """ % self.dest))
         tmpdir.ensure("test_one.py").write("""def test_nice():
             import os
             assert os.nice(0) == 10



More information about the pytest-commit mailing list