Fix test.py.
It may detect the need-screen-escape incorrectly or not invoke the vim subprocess in the first test case. These could be fixed by adding a short sleep.
This commit is contained in:
parent
ccf79ba823
commit
9a98039d2b
4
test.py
4
test.py
@ -184,11 +184,15 @@ class VimInterfaceScreen(VimInterface):
|
||||
# Send a string where the interpretation will depend on version of screen
|
||||
string = "$TERM"
|
||||
self.send("i" + string + ESC)
|
||||
# too fast makes the buffer differ from string even in
|
||||
# non-escape mode
|
||||
time.sleep(1)
|
||||
output = self.get_buffer_data()
|
||||
# If the output doesn't match the input, need to do additional escaping
|
||||
if output != string:
|
||||
self.need_screen_escapes = 1
|
||||
self.send(ESC + ":q!\n")
|
||||
time.sleep(0.2) # prevent from losing the first vim test case
|
||||
|
||||
class VimInterfaceTmux(VimInterface):
|
||||
def __init__(self, session):
|
||||
|
Loading…
Reference in New Issue
Block a user