[py-svn] r31505 - in py/branch/distributed/py/execnet: . testing

hpk at codespeak.net hpk at codespeak.net
Tue Aug 22 20:37:26 CEST 2006


Author: hpk
Date: Tue Aug 22 20:37:22 2006
New Revision: 31505

Modified:
   py/branch/distributed/py/execnet/register.py
   py/branch/distributed/py/execnet/testing/test_gateway.py
Log:
add sshaddress as an attribute to SshGateway


Modified: py/branch/distributed/py/execnet/register.py
==============================================================================
--- py/branch/distributed/py/execnet/register.py	(original)
+++ py/branch/distributed/py/execnet/register.py	Tue Aug 22 20:37:22 2006
@@ -139,6 +139,7 @@
     
 class SshGateway(PopenCmdGateway):
     def __init__(self, sshaddress, remotepython='python', identity=None): 
+        self.sshaddress = sshaddress
         remotecmd = '%s -u -c "exec input()"' % (remotepython,)
         cmdline = [sshaddress, remotecmd]
         # XXX Unix style quoting

Modified: py/branch/distributed/py/execnet/testing/test_gateway.py
==============================================================================
--- py/branch/distributed/py/execnet/testing/test_gateway.py	(original)
+++ py/branch/distributed/py/execnet/testing/test_gateway.py	Tue Aug 22 20:37:22 2006
@@ -388,3 +388,6 @@
             py.test.skip("no known ssh target, use -S to set one")
         cls.gw = py.execnet.SshGateway(option.sshtarget) 
 
+    def test_sshaddress(self):
+        assert self.gw.sshaddress == option.sshtarget
+



More information about the pytest-commit mailing list