Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #33213: don't reset expect interfaces when starting them.
Browse files Browse the repository at this point in the history
  • Loading branch information
orlitzky committed Feb 17, 2022
1 parent ffd9aa6 commit 03941c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/sage/interfaces/expect.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,12 @@ def _do_cleaner(self):

def _start(self, alt_message=None, block_during_init=True):
from sage.misc.misc import sage_makedirs
self.quit() # in case one is already running

if self.is_running():
# In case one is already running. We check first because
# quit() can reset the local temporary filename at an
# unexpected time as the process is started "on demand."
self.quit()

self._session_number += 1

Expand Down

0 comments on commit 03941c1

Please sign in to comment.