[py-svn] r57481 - py/trunk/py/path/gateway
hpk at codespeak.net
hpk at codespeak.net
Tue Aug 19 23:47:11 CEST 2008
Author: hpk
Date: Tue Aug 19 23:47:09 2008
New Revision: 57481
Modified:
py/trunk/py/path/gateway/channeltest.py
py/trunk/py/path/gateway/channeltest2.py
py/trunk/py/path/gateway/remotepath.py
Log:
fix a few things, seems to work again.
Modified: py/trunk/py/path/gateway/channeltest.py
==============================================================================
--- py/trunk/py/path/gateway/channeltest.py (original)
+++ py/trunk/py/path/gateway/channeltest.py Tue Aug 19 23:47:09 2008
@@ -25,7 +25,7 @@
def command_GET(self, id, spec):
path = self.C2P[id]
- self.channel.send(path.get(spec))
+ self.channel.send(path._getbyspec(spec))
def command_READ(self, id):
path = self.C2P[id]
Modified: py/trunk/py/path/gateway/channeltest2.py
==============================================================================
--- py/trunk/py/path/gateway/channeltest2.py (original)
+++ py/trunk/py/path/gateway/channeltest2.py Tue Aug 19 23:47:09 2008
@@ -13,7 +13,8 @@
#gw = py.execnet.SshGateway('codespeak.net')
gw = py.execnet.PopenGateway()
-c = gw.remote_exec(SRC)
+gw.remote_init_threads(5)
+c = gw.remote_exec(SRC, stdout=py.std.sys.stdout, stderr=py.std.sys.stderr)
subchannel = gw._channelfactory.new()
c.send(subchannel)
Modified: py/trunk/py/path/gateway/remotepath.py
==============================================================================
--- py/trunk/py/path/gateway/remotepath.py (original)
+++ py/trunk/py/path/gateway/remotepath.py Tue Aug 19 23:47:09 2008
@@ -33,7 +33,7 @@
self._channel.send(('JOIN', self._id, id) + args)
return RemotePath(self._channel, id)
- def get(self, spec):
+ def _getbyspec(self, spec):
parts = spec.split(',')
ask = [x for x in parts if x not in self._specs]
if ask:
More information about the pytest-commit
mailing list