@@ -135,15 +135,15 @@ def _get_exit_code() -> int:
135
135
return 0
136
136
# First reset the prompt in case venv was sourced or other reasons.
137
137
SHELL .sendline (f"export PS1={ PROMPT } " )
138
- SHELL .expect (PROMPT , timeout = 0.1 )
138
+ SHELL .expect (PROMPT , timeout = 0.2 )
139
139
# Reset echo also if it was enabled
140
140
SHELL .sendline ("stty -icanon -echo" )
141
- SHELL .expect (PROMPT , timeout = 0.1 )
141
+ SHELL .expect (PROMPT , timeout = 0.2 )
142
142
SHELL .sendline ("echo $?" )
143
143
before = ""
144
144
while not _is_int (before ): # Consume all previous output
145
145
try :
146
- SHELL .expect (PROMPT , timeout = 0.1 )
146
+ SHELL .expect (PROMPT , timeout = 0.2 )
147
147
except pexpect .TIMEOUT :
148
148
print (f"Couldn't get exit code, before: { before } " )
149
149
raise
@@ -215,7 +215,7 @@ def update_repl_prompt(command: str) -> bool:
215
215
216
216
def get_cwd () -> str :
217
217
SHELL .sendline ("pwd" )
218
- SHELL .expect (PROMPT , timeout = 0.1 )
218
+ SHELL .expect (PROMPT , timeout = 0.2 )
219
219
assert isinstance (SHELL .before , str )
220
220
current_dir = render_terminal_output (SHELL .before ).strip ()
221
221
return current_dir
0 commit comments