[py-svn] r7960 - py/dist/py/execnet

hpk at codespeak.net hpk at codespeak.net
Wed Dec 22 10:19:21 CET 2004


Author: hpk
Date: Wed Dec 22 10:19:20 2004
New Revision: 7960

Modified:
   py/dist/py/execnet/register.py
   py/dist/py/execnet/sshtesting.py
Log:
use localhost instead of codespeak.net as the 
default host for testing SSH-Gateways 


Modified: py/dist/py/execnet/register.py
==============================================================================
--- py/dist/py/execnet/register.py	(original)
+++ py/dist/py/execnet/register.py	Wed Dec 22 10:19:20 2004
@@ -60,6 +60,7 @@
                 self.trace("child process %s already dead?" %pid) 
 
 class PopenGateway(PopenCmdGateway):
+    # use sysfind/sysexec/subprocess instead of os.popen? 
     def __init__(self, python=sys.executable):
         cmd = '%s -u -c "exec input()"' % python
         super(PopenGateway, self).__init__(cmd)

Modified: py/dist/py/execnet/sshtesting.py
==============================================================================
--- py/dist/py/execnet/sshtesting.py	(original)
+++ py/dist/py/execnet/sshtesting.py	Wed Dec 22 10:19:20 2004
@@ -4,8 +4,10 @@
 
 import py
 
-REMOTE_HOST = 'codespeak.net'    # set this to some place where you can ssh to
-REMOTE_HOSTNAME = 'thoth.codespeak.net'   # the remote's socket.gethostname()
+#REMOTE_HOST = 'codespeak.net'     
+#REMOTE_HOSTNAME = 'thoth.codespeak.net'  
+REMOTE_HOST = 'localhost'    # you need to have a local ssh-daemon running! 
+REMOTE_HOSTNAME = py.std.socket.gethostname() # the remote's socket.gethostname()
 
 def test_sshgateway():
     gw = py.execnet.SshGateway(REMOTE_HOST)



More information about the pytest-commit mailing list