Skip to content

Commit a6b5fa4

Browse files
committed
Accept sage and ipython prompts in expect interface
Some tests spawn a sage subshell which changes the prompt and confuses the expect instance
1 parent d35973d commit a6b5fa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/interfaces/sage0.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def __init__(self,
154154
'of code')
155155

156156
command = 'python3 -u'
157-
prompt = re.compile(b'>>> ')
157+
prompt = re.compile(b'>>> |sage: |In : ')
158158
environment = 'sage.all'
159159
init_code.append(f'from {environment} import *')
160160
init_code.append('import pickle')

0 commit comments

Comments
 (0)