From d32f2c5c142b71b9fca55860c4d00652ab7a9aa5 Mon Sep 17 00:00:00 2001 From: Jose Carlos Menezes Date: Sun, 14 Oct 2018 18:42:55 -0300 Subject: [PATCH] Change Exit.__init__ params order to keep backward compatibility --- src/_pytest/outcomes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)