Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/sage/doctest/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
# https://www.gnu.org/licenses/
# ****************************************************************************

import os
import re
import sys
from signal import SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, SIGTERM, Signals
Expand Down Expand Up @@ -195,7 +196,7 @@ def report_head(self, source, fail_msg=None):
sage: print(DTR.report_head(FDS, "Failed by self-sabotage"))
... --long .../sage/doctest/reporting.py # Failed by self-sabotage
"""
cmd = "sage-runtests" if "sage-runtests" in argv[0] else "python3 -m sage.doctest"
cmd = os.path.relpath(argv[0]) if "sage-runtests" in argv[0] else "python3 -m sage.doctest"
if self.controller.options.long:
cmd += " --long"

Expand Down
Loading