Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 9fe26c1

Browse files
author
Release Manager
committed
Trac #29442: Fix failing doctest in src/sage/interfaces/tachyon.py
{{{ sage -t src/sage/interfaces/tachyon.py ********************************************************************** File "src/sage/interfaces/tachyon.py", line 175, in sage.interfaces.tachyon.TachyonRT.usage Failed example: t.usage(use_pager=False) Expected: Tachyon Parallel/Multiprocessor Ray Tracer Version... Got: Usage: tachyon modelfile [options] <BLANKLINE> Valid options and accepted formats are as follows (** denotes default behaviour). <BLANKLINE> Model file formats supported: ... }}} This seems to have been introduced by using the systems tachyon. It appears that in some cases (depending on the version probably) tachyon does not print out the first lines {{{ Tachyon Parallel/Multiprocessor Ray Tracer Version 0.98.9 Copyright 1994-2010, John E. Stone <[email protected]> ------------------------------------------------------------ }}} We fix this by testing for the following output: {{{ ... Usage: tachyon modelfile [options]... <BLANKLINE> Model file formats supported: filename.dat ... }}} URL: https://trac.sagemath.org/29442 Reported by: gh-kliem Ticket author(s): Jonathan Kliem Reviewer(s): Frédéric Chapoton, Matthias Koeppe
2 parents 447faa1 + 871df4b commit 9fe26c1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/sage/interfaces/tachyon.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class TachyonRT(SageObject):
7474
7575
EXAMPLES:
7676
77-
77+
7878
.. automethod:: __call__
7979
"""
8080
def _repr_(self):
@@ -173,7 +173,11 @@ def usage(self, use_pager=True):
173173
sage: from sage.interfaces.tachyon import TachyonRT
174174
sage: t = TachyonRT()
175175
sage: t.usage(use_pager=False)
176-
Tachyon Parallel/Multiprocessor Ray Tracer Version...
176+
...
177+
tachyon modelfile [options]...
178+
<BLANKLINE>
179+
Model file formats supported:
180+
filename.dat ...
177181
"""
178182
with os.popen('tachyon') as f:
179183
r = f.read()

0 commit comments

Comments
 (0)