Merge pull request #3545 from blueyed/int
Improve display of hint about --fulltrace with KeyboardInterrupt
This commit is contained in:
commit
f389a4e91f
|
@ -0,0 +1 @@
|
|||
Improve display of hint about ``--fulltrace`` with ``KeyboardInterrupt``.
|
|
@ -617,11 +617,11 @@ class TerminalReporter(object):
|
|||
if self.config.option.fulltrace:
|
||||
excrepr.toterminal(self._tw)
|
||||
else:
|
||||
excrepr.reprcrash.toterminal(self._tw)
|
||||
self._tw.line(
|
||||
"to show a full traceback on KeyboardInterrupt use --fulltrace",
|
||||
"(to show a full traceback on KeyboardInterrupt use --fulltrace)",
|
||||
yellow=True,
|
||||
)
|
||||
excrepr.reprcrash.toterminal(self._tw)
|
||||
|
||||
def _locationline(self, nodeid, fspath, lineno, domain):
|
||||
|
||||
|
|
|
@ -203,7 +203,7 @@ class TestTerminal(object):
|
|||
)
|
||||
else:
|
||||
result.stdout.fnmatch_lines(
|
||||
["to show a full traceback on KeyboardInterrupt use --fulltrace"]
|
||||
["(to show a full traceback on KeyboardInterrupt use --fulltrace)"]
|
||||
)
|
||||
result.stdout.fnmatch_lines(["*KeyboardInterrupt*"])
|
||||
|
||||
|
|
Loading…
Reference in New Issue