336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 |
345 | |
def test_channel_file_proxyclose(self): |
channel = self.gw.remote_exec(""" |
f = channel.makefile(proxyclose=True) |
print >>f, "hello world" |
f.close() |
channel.send(42) |
""") |
-> first = channel.receive() + channel.receive() |
assert first.strip() == 'hello world' |
py.test.raises(EOFError, channel.receive) | |