diff --git a/src/_pytest/terminal.py b/src/_pytest/terminal.py index bcd6e1f7c..05d5427c3 100644 --- a/src/_pytest/terminal.py +++ b/src/_pytest/terminal.py @@ -692,7 +692,7 @@ class TerminalReporter: 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 --full-trace)", yellow=True, ) diff --git a/testing/test_terminal.py b/testing/test_terminal.py index bf029fbc5..381a5b2e1 100644 --- a/testing/test_terminal.py +++ b/testing/test_terminal.py @@ -233,7 +233,7 @@ class TestTerminal: ) else: 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*"])