comparison src/testdir/test_channel.py @ 25090:73503bafb3bf v8.2.3082

patch 8.2.3082: a channel command "echoerr" does not show anything Commit: https://github.com/vim/vim/commit/b836f631dba2534efd314a8f77439cebc75acd4e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 1 22:11:28 2021 +0200 patch 8.2.3082: a channel command "echoerr" does not show anything Problem: A channel command "echoerr" does not show anything. Solution: Do not use silent errors when using an "echoerr" command. (closes #8494)
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Jul 2021 22:15:04 +0200
parents 235be779549f
children 42c9386eebf4
comparison
equal deleted inserted replaced
25089:80739b453fd4 25090:73503bafb3bf
107 cmd = '["ex","call append(\\"$\\",\\"added1\\")"]' 107 cmd = '["ex","call append(\\"$\\",\\"added1\\")"]'
108 cmd += '["ex","call append(\\"$\\",\\"added2\\")"]' 108 cmd += '["ex","call append(\\"$\\",\\"added2\\")"]'
109 print("sending: {0}".format(cmd)) 109 print("sending: {0}".format(cmd))
110 self.request.sendall(cmd.encode('utf-8')) 110 self.request.sendall(cmd.encode('utf-8'))
111 response = "ok" 111 response = "ok"
112 elif decoded[1] == 'echoerr':
113 cmd = '["ex","echoerr \\\"this is an error\\\""]'
114 print("sending: {0}".format(cmd))
115 self.request.sendall(cmd.encode('utf-8'))
116 response = "ok"
112 elif decoded[1] == 'bad command': 117 elif decoded[1] == 'bad command':
113 cmd = '["ex","foo bar"]' 118 cmd = '["ex","foo bar"]'
114 print("sending: {0}".format(cmd)) 119 print("sending: {0}".format(cmd))
115 self.request.sendall(cmd.encode('utf-8')) 120 self.request.sendall(cmd.encode('utf-8'))
116 response = "ok" 121 response = "ok"