File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,12 @@ def test_zsh_integration(self):
5858RPS1="{ rps1 } "
5959''' ) as pty :
6060 q = ps1 + ' ' * (pty .screen .columns - len (ps1 ) - len (rps1 )) + rps1
61- pty .wait_till (lambda : pty .screen .cursor .shape == CURSOR_BEAM )
61+ try :
62+ pty .wait_till (lambda : pty .screen .cursor .shape == CURSOR_BEAM )
63+ except TimeoutError :
64+ raise AssertionError (f'Cursor was not changed to beam. Screen contents: { repr (pty .screen_contents ())} ' )
6265 self .ae (pty .screen_contents (), q )
6366 self .ae (pty .callbacks .titlebuf , '~' )
6467 pty .send_cmd_to_child ('mkdir test && ls -a' )
65- pty .wait_till (lambda : pty .screen_contents ().count ('left>' ) == 2 )
68+ pty .wait_till (lambda : pty .screen_contents ().count (ps1 ) == 2 )
6669 self .ae (pty .last_cmd_output (), str (pty .screen .line (1 )))
You can’t perform that action at this time.
0 commit comments