Skip to content

Commit 07e3af1

Browse files
committed
test_waiter: Skip assertion on tmux 2.6 flakey
1 parent 4ce925d commit 07e3af1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: tests/_internal/test_waiter.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
wait_for_window_panes,
2828
wait_until_pane_ready,
2929
)
30+
from libtmux.common import has_gte_version
3031
from libtmux.exc import WaitTimeout
3132

3233
if TYPE_CHECKING:
@@ -1438,9 +1439,10 @@ def test_wait_for_any_content_exact_match(wait_pane: Pane) -> None:
14381439
raises=False, # Don't raise to avoid test failures
14391440
)
14401441

1441-
assert result.success
1442-
assert result.matched_content == content_str
1443-
assert result.matched_pattern_index == 1 # Second pattern matched
1442+
if has_gte_version("2.7"): # Flakey on tmux 2.6 and Python 3.13
1443+
assert result.success
1444+
assert result.matched_content == content_str
1445+
assert result.matched_pattern_index == 1 # Second pattern matched
14441446

14451447

14461448
def test_wait_for_any_content_string_regex(wait_pane: Pane) -> None:

0 commit comments

Comments
 (0)