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

Commit

Permalink
Trac #15811: Random doctest failure in maxima_abstract.py
Browse files Browse the repository at this point in the history
This is yet again due to terminal echo showing up in unexpected places.

URL: http://trac.sagemath.org/15811
Reported by: vbraun
Ticket author(s): Volker Braun
Reviewer(s): Jean-Pierre Flori
  • Loading branch information
Release Manager authored and vbraun committed Feb 14, 2014
2 parents 8f603de + 580da04 commit 7019959
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/interfaces/maxima.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,8 @@ def _eval_line(self, line, allow_use_file=False,
line_echo = self._expect.readline()
if not wait_for_prompt:
return
assert line_echo.strip() == line.strip(), 'mismatch:\n' + line_echo + line
# line_echo sometimes has randomly inserted terminal echo in front #15811
assert line_echo.strip().endswith(line.strip()), 'mismatch:\n' + line_echo + line

self._expect_expr(self._display_prompt)
out = self._before() # input echo + output prompt + output
Expand Down

0 comments on commit 7019959

Please sign in to comment.