def test_channel_file_write_error(self):
channel = self.gw.remote_exec("pass")
-> f = channel.makefile()
channel.waitclose(TESTTIMEOUT)
py.test.raises(IOError, f.write, 'hello')