Skip to content

Commit

Permalink
Trac #27976: py3: fix one doctest in doctest folder
Browse files Browse the repository at this point in the history
not the last one alas, but still good to do

URL: https://trac.sagemath.org/27976
Reported by: chapoton
Ticket author(s): Frédéric Chapoton
Reviewer(s): Vincent Klein
  • Loading branch information
Release Manager committed Jun 27, 2019
2 parents 8a9ed18 + ba48957 commit d0eda81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/doctest/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,11 @@
sage: from platform import system
sage: ok = True
sage: from sage.cpython.string import bytes_to_str
sage: if system() == "Linux":
....: P = subprocess.Popen(["sage", "-t", "--warn-long", "0", "--memlimit=2000", "memlimit.rst"], stdout=subprocess.PIPE, **kwds)
....: out, err = P.communicate()
....: ok = ("MemoryError: failed to allocate" in out)
....: ok = ("MemoryError: failed to allocate" in bytes_to_str(out))
sage: ok or out
True
"""

0 comments on commit d0eda81

Please sign in to comment.