diff --git a/src/_pytest/outcomes.py b/src/_pytest/outcomes.py index ca251c0e8..d12e78266 100644 --- a/src/_pytest/outcomes.py +++ b/src/_pytest/outcomes.py @@ -49,7 +49,7 @@ class Failed(OutcomeException): class Exit(KeyboardInterrupt): """ raised for immediate program exits (no tracebacks/summaries)""" - def __init__(self, returncode=None, msg="unknown reason"): + def __init__(self, msg="unknown reason", returncode=None): self.msg = msg self.returncode = returncode KeyboardInterrupt.__init__(self, msg)