commit:     c8a3df6f1e2217e0b77412a99f612950ed1174fd
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 17 16:04:54 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Mar 17 16:24:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8a3df6f

dev-python/libtmux: Disable pytest plugin autoloading

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/libtmux/libtmux-0.32.0.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev-python/libtmux/libtmux-0.32.0.ebuild 
b/dev-python/libtmux/libtmux-0.32.0.ebuild
index 8dcc7ee19960..495a7ad4e9f9 100644
--- a/dev-python/libtmux/libtmux-0.32.0.ebuild
+++ b/dev-python/libtmux/libtmux-0.32.0.ebuild
@@ -56,5 +56,7 @@ python_test() {
        # tests/test_window.py::test_fresh_window_data fails if TMUX_PANE is set
        # https://bugs.gentoo.org/927158
        local -x TMUX_PANE=
-       epytest
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       local -x PYTEST_PLUGINS=libtmux.pytest_plugin
+       epytest -p pytest_mock -p rerunfailures
 }

Reply via email to