From 0f65843cb91b822d37aa7dd9d6891f4990ec3ab8 Mon Sep 17 00:00:00 2001 From: Arthur Richard Date: Wed, 13 Dec 2023 11:23:51 +0000 Subject: [PATCH 1/4] Improves clarity in Sphinx documentation for function signature. --- src/_pytest/outcomes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_pytest/outcomes.py b/src/_pytest/outcomes.py index a8984c5b97b..d2d2d13e6c7 100644 --- a/src/_pytest/outcomes.py +++ b/src/_pytest/outcomes.py @@ -113,6 +113,7 @@ def exit( :param returncode: Return code to be used when exiting pytest. + :default returncode: None :param msg: Same as ``reason``, but deprecated. Will be removed in a future version, use ``reason`` instead. From 780c0dd862197f4f462f03b6651004b826341749 Mon Sep 17 00:00:00 2001 From: Arthur Richard Date: Wed, 13 Dec 2023 11:27:49 +0000 Subject: [PATCH 2/4] Forget to add name in AUTHORS --- AUTHORS | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS b/AUTHORS index 669ec537e56..bb273edcc30 100644 --- a/AUTHORS +++ b/AUTHORS @@ -48,6 +48,7 @@ Ariel Pillemer Armin Rigo Aron Coyle Aron Curzon +Arthur Richard Ashish Kurmi Aviral Verma Aviv Palivoda From bb3b54c2c17f1ef8e23ddca8881a51700e7b6698 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 14 Dec 2023 08:09:08 -0300 Subject: [PATCH 3/4] Update reference.rst --- doc/en/reference/reference.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/en/reference/reference.rst b/doc/en/reference/reference.rst index d6f942ad0e2..3054109ba50 100644 --- a/doc/en/reference/reference.rst +++ b/doc/en/reference/reference.rst @@ -79,7 +79,7 @@ pytest.xfail pytest.exit ~~~~~~~~~~~ -.. autofunction:: pytest.exit(reason, [returncode=False, msg=None]) +.. autofunction:: pytest.exit(reason, [returncode=None, msg=None]) pytest.main ~~~~~~~~~~~ From d5ee9d340ebe1dd171ed1202ca93f9fc00ef277d Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 14 Dec 2023 08:09:42 -0300 Subject: [PATCH 4/4] Update src/_pytest/outcomes.py --- src/_pytest/outcomes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/_pytest/outcomes.py b/src/_pytest/outcomes.py index d2d2d13e6c7..0f64f91d9ff 100644 --- a/src/_pytest/outcomes.py +++ b/src/_pytest/outcomes.py @@ -112,8 +112,7 @@ def exit( only because `msg` is deprecated. :param returncode: - Return code to be used when exiting pytest. - :default returncode: None + Return code to be used when exiting pytest. None means the same as ``0`` (no error), same as :func:`sys.exit`. :param msg: Same as ``reason``, but deprecated. Will be removed in a future version, use ``reason`` instead.