diff --git a/src/_pytest/outcomes.py b/src/_pytest/outcomes.py index 92b6824b6..ca251c0e8 100644 --- a/src/_pytest/outcomes.py +++ b/src/_pytest/outcomes.py @@ -59,7 +59,11 @@ class Exit(KeyboardInterrupt): def exit(msg, returncode=None): - """ exit testing process as if KeyboardInterrupt was triggered. """ + """ + Exit testing process as if KeyboardInterrupt was triggered. + + :param int returncode: return code to be used when exiting pytest.. + """ __tracebackhide__ = True raise Exit(returncode, msg)