commit:     833255f9cf0694a78e9a38863661f6977a8d1982
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 17 16:02:12 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Mar 17 16:24:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=833255f9

dev-python/libtmux: Fix test failures when running in tmux

Closes: https://bugs.gentoo.org/927158
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/libtmux/libtmux-0.30.2.ebuild | 5 ++++-
 dev-python/libtmux/libtmux-0.32.0.ebuild | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/dev-python/libtmux/libtmux-0.30.2.ebuild 
b/dev-python/libtmux/libtmux-0.30.2.ebuild
index 3347c96865a2..8dcc7ee19960 100644
--- a/dev-python/libtmux/libtmux-0.30.2.ebuild
+++ b/dev-python/libtmux/libtmux-0.30.2.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{9..12} pypy3 )
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
 
 inherit distutils-r1
 
@@ -53,5 +53,8 @@ python_test() {
        local -a EPYTEST_DESELECT=(
                libtmux/pane.py::libtmux.pane.Pane.send_keys
        )
+       # tests/test_window.py::test_fresh_window_data fails if TMUX_PANE is set
+       # https://bugs.gentoo.org/927158
+       local -x TMUX_PANE=
        epytest
 }

diff --git a/dev-python/libtmux/libtmux-0.32.0.ebuild 
b/dev-python/libtmux/libtmux-0.32.0.ebuild
index df35033bc48a..8dcc7ee19960 100644
--- a/dev-python/libtmux/libtmux-0.32.0.ebuild
+++ b/dev-python/libtmux/libtmux-0.32.0.ebuild
@@ -53,5 +53,8 @@ python_test() {
        local -a EPYTEST_DESELECT=(
                libtmux/pane.py::libtmux.pane.Pane.send_keys
        )
+       # tests/test_window.py::test_fresh_window_data fails if TMUX_PANE is set
+       # https://bugs.gentoo.org/927158
+       local -x TMUX_PANE=
        epytest
 }

Reply via email to