Skip to content

Commit 2236987

Browse files
committed
Return sage -t to make sure all env variables are properly set
1 parent 0c78d72 commit 2236987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/doctest/reporting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def report_head(self, source, fail_msg=None):
196196
sage: print(DTR.report_head(FDS, "Failed by self-sabotage"))
197197
... --long .../sage/doctest/reporting.py # Failed by self-sabotage
198198
"""
199-
cmd = os.path.relpath(argv[0]) if "sage-runtests" in argv[0] else "python3 -m sage.doctest"
199+
cmd = os.path.relpath(argv[0]).replace("-runtests", " -t") if "sage-runtests" in argv[0] else "python3 -m sage.doctest"
200200
if self.controller.options.long:
201201
cmd += " --long"
202202

0 commit comments

Comments
 (0)