Fix order of parameters when raising Exit exception
This commit is contained in:
parent
40091ec2c7
commit
27d932e882
|
@ -66,7 +66,7 @@ def exit(msg, returncode=None):
|
||||||
:param int returncode: return code to be used when exiting pytest.
|
:param int returncode: return code to be used when exiting pytest.
|
||||||
"""
|
"""
|
||||||
__tracebackhide__ = True
|
__tracebackhide__ = True
|
||||||
raise Exit(returncode, msg)
|
raise Exit(msg, returncode)
|
||||||
|
|
||||||
|
|
||||||
exit.Exception = Exit
|
exit.Exception = Exit
|
||||||
|
|
Loading…
Reference in New Issue