diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-23 13:20:22 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-23 13:20:22 +0100 |
commit | 4e221c99e85ed40c98892068a01270b9e7492d98 (patch) | |
tree | d2b51bcd1f0adff723d86acfdc7d3d6481bcaf87 /src/testdir/test_channel.py | |
parent | 0bb6108eb4e1ecaed437bc507f514f5da7816d9e (diff) | |
download | vim-git-4e221c99e85ed40c98892068a01270b9e7492d98.tar.gz |
patch 7.4.1398v7.4.1398
Problem: The close-cb option is not implemented yet.
Solution: Implemente close-cb. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/testdir/test_channel.py')
-rw-r--r-- | src/testdir/test_channel.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_channel.py b/src/testdir/test_channel.py index 26c7dea8d..9a3c9213a 100644 --- a/src/testdir/test_channel.py +++ b/src/testdir/test_channel.py @@ -140,6 +140,10 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler): print("sending: {}".format(cmd)) self.request.sendall(cmd.encode('utf-8')) response = "" + elif decoded[1] == 'close me': + print("closing") + self.request.close() + response = "" elif decoded[1] == 'wait a bit': time.sleep(0.2) response = "waited" |