This repository was archived by the owner on Feb 1, 2023. It is now read-only.
Commit 9fe26c1
Release Manager
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 Koeppe1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
177 | 181 | | |
178 | 182 | | |
179 | 183 | | |
| |||
0 commit comments