diff --git a/py/path/gateway/channeltest.py b/py/path/gateway/channeltest.py index fdb46ab9b..07581ebf5 100644 --- a/py/path/gateway/channeltest.py +++ b/py/path/gateway/channeltest.py @@ -53,7 +53,7 @@ class PathServer: if __name__ == '__main__': import py gw = py.execnet.PopenGateway() - channel = gw.channelfactory.new() + channel = gw._channelfactory.new() srv = PathServer(channel) c = gw.remote_exec(""" import remotepath diff --git a/py/path/gateway/channeltest2.py b/py/path/gateway/channeltest2.py index f22026d04..79fd2a59a 100644 --- a/py/path/gateway/channeltest2.py +++ b/py/path/gateway/channeltest2.py @@ -14,7 +14,7 @@ channel.send(srv.p2c(py.path.local("/tmp"))) #gw = py.execnet.SshGateway('codespeak.net') gw = py.execnet.PopenGateway() c = gw.remote_exec(SRC) -subchannel = gw.channelfactory.new() +subchannel = gw._channelfactory.new() c.send(subchannel) p = RemotePath(subchannel, c.receive())