Change the warning message

This commit is contained in:
Kaiqi 2019-07-27 21:06:29 +02:00
parent 958374addb
commit aa13c625da
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ def pytest_addoption(parser):
) )
group._addoption( group._addoption(
"--fulltrace", "--fulltrace",
"--fulltrace", "--full-trace",
action="store_true", action="store_true",
default=False, default=False,
help="don't cut any tracebacks (default is to cut).", help="don't cut any tracebacks (default is to cut).",
@ -692,7 +692,7 @@ class TerminalReporter:
else: else:
excrepr.reprcrash.toterminal(self._tw) excrepr.reprcrash.toterminal(self._tw)
self._tw.line( self._tw.line(
"(to show a full traceback on KeyboardInterrupt use --fulltrace)", "(to show a full traceback on KeyboardInterrupt use --full-trace)",
yellow=True, yellow=True,
) )

View File

@ -233,7 +233,7 @@ class TestTerminal:
) )
else: else:
result.stdout.fnmatch_lines( result.stdout.fnmatch_lines(
["(to show a full traceback on KeyboardInterrupt use --fulltrace)"] ["(to show a full traceback on KeyboardInterrupt use --full-trace)"]
) )
result.stdout.fnmatch_lines(["*KeyboardInterrupt*"]) result.stdout.fnmatch_lines(["*KeyboardInterrupt*"])