summaryrefslogtreecommitdiff
path: root/src/testdir/test_channel.py
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-23 13:20:22 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-23 13:20:22 +0100
commit4e221c99e85ed40c98892068a01270b9e7492d98 (patch)
treed2b51bcd1f0adff723d86acfdc7d3d6481bcaf87 /src/testdir/test_channel.py
parent0bb6108eb4e1ecaed437bc507f514f5da7816d9e (diff)
downloadvim-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.py4
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"