File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ def assertIsMissing(cmd, hist):
173173 p .cmd ("send-keys" , "Enter" )
174174
175175 buffer_name = "test"
176+ sent_cmd = None
177+
176178 def f ():
177179 # from v0.7.4 libtmux session.cmd adds target -t self.id by default
178180 # show-buffer doesn't accept -t, use global cmd.
@@ -290,13 +292,7 @@ def f():
290292 return len (pane_out ) > 1 and pane_out [- 2 ].strip () == s
291293
292294 # Print output for easier debugging if assertion fails
293- if retry_until (f , raises = False ):
294- return True
295- else :
296- print ("\n " .join (pane_out ))
297- return False
298-
299- return correct
295+ return retry_until (f , raises = False )
300296
301297 for i , pane in enumerate (session .attached_window .panes ):
302298 assert assert_last_line (
You can’t perform that action at this time.
0 commit comments