From 27d932e882152c828352ec4855ac2e16d23cc115 Mon Sep 17 00:00:00 2001 From: Jose Carlos Menezes Date: Sun, 14 Oct 2018 18:48:32 -0300 Subject: [PATCH] Fix order of parameters when raising Exit exception --- 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 35b3bfb9f..4c7958384 100644 --- a/src/_pytest/outcomes.py +++ b/src/_pytest/outcomes.py @@ -66,7 +66,7 @@ def exit(msg, returncode=None): :param int returncode: return code to be used when exiting pytest. """ __tracebackhide__ = True - raise Exit(returncode, msg) + raise Exit(msg, returncode) exit.Exception = Exit