From a4054f0f818c4d150795924612376f3f9a102c58 Mon Sep 17 00:00:00 2001 From: fandehui Date: Fri, 27 Oct 2023 14:44:51 +0800 Subject: [PATCH] Mention that wrappers are still invoked when using `firstresult` --- ...ppers-are-still-invoked-when-using-f.patch | 26 +++++++++++++++++++ python-pluggy.spec | 6 ++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 Mention-that-wrappers-are-still-invoked-when-using-f.patch diff --git a/Mention-that-wrappers-are-still-invoked-when-using-f.patch b/Mention-that-wrappers-are-still-invoked-when-using-f.patch new file mode 100644 index 0000000..6c328ed --- /dev/null +++ b/Mention-that-wrappers-are-still-invoked-when-using-f.patch @@ -0,0 +1,26 @@ +From 6334e37c41af672ed26a65c06d657cc2e6579db4 Mon Sep 17 00:00:00 2001 +From: Tyler Goodlet +Date: Tue, 13 Mar 2018 17:48:31 -0400 +Subject: [PATCH] Mention that wrappers are still invoked when using + `firstresult` + +Resolves #125 +--- + docs/index.rst | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/docs/index.rst b/docs/index.rst +index 8f0e2fe..2349017 100644 +--- a/docs/index.rst ++++ b/docs/index.rst +@@ -357,6 +357,7 @@ then ``None``. + This can be useful for optimizing a call loop for which you are only + interested in a single core *hookimpl*. An example is the + `pytest_cmdline_main`_ central routine of ``pytest``. ++Note that all ``hookwrappers`` are still invoked with the first result. + + Also see the `first result`_ section in the ``pytest`` docs. + +-- +2.27.0 + diff --git a/python-pluggy.spec b/python-pluggy.spec index f0c788d..590ac30 100644 --- a/python-pluggy.spec +++ b/python-pluggy.spec @@ -3,12 +3,13 @@ Name: python-pluggy Version: 0.6.0 -Release: 7 +Release: 8 Summary: A minimalist production ready plugin system License: MIT URL: https://github.com/pytest-dev/pluggy Source0: https://github.com/pytest-dev/%{pypi_name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Patch0: Fix-typos.patch +Patch1: Mention-that-wrappers-are-still-invoked-when-using-f.patch BuildArch: noarch BuildRequires: python2-devel python2-setuptools @@ -72,6 +73,9 @@ py.test-%{python3_version} testing %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Fri Oct 27 2023 fandehui - 0.6.0-8 +- Mention that wrappers are still invoked when using `firstresult` + * Fri Oct 20 2023 fandehui - 0.6.0-7 - Fix typos