Skip to content

Commit 4f7754a

Browse files
author
Release Manager
committed
Trac #34594: Fix error in sage.misc.latex.view doctest
With 9.8.beta0, the command {{{ sage -t --long --optional=sage,optional,external src/sage/misc/latex.py }}} gives error. Excerpted from #33931. URL: https://trac.sagemath.org/34594 Reported by: jhpalmieri Ticket author(s): John Palmieri, Sébastien Labbé Reviewer(s): Sébastien Labbé, John Palmieri
2 parents e77f1a4 + 81ff989 commit 4f7754a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/misc/latex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1859,7 +1859,7 @@ def view(objects, title='Sage', debug=False, sep='', tiny=False,
18591859
sage: with NamedTemporaryFile(mode="w+t", suffix=".tex") as f: # optional - latex latex_package_tkz_graph
18601860
....: _ = f.write(_latex_file_(g))
18611861
....: f.flush()
1862-
....: _run_latex_(file, engine="pdflatex")
1862+
....: _run_latex_(f.name, engine="pdflatex")
18631863
'pdf'
18641864
18651865
sage: view(4, margin=5, debug=True) # not tested

0 commit comments

Comments
 (0)