Fix order of parameters when raising Exit exception

This commit is contained in:
Jose Carlos Menezes 2018-10-14 18:48:32 -03:00
parent 40091ec2c7
commit 27d932e882
1 changed files with 1 additions and 1 deletions

View File

@ -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