Skip to content

Commit 858329d

Browse files
committed
tests/legacy_api/test_server.py(refactor): Remove pre-3.2 version conditional
why: tmux >= 3.2a is now required, making the conditional always true what: - Remove has_gte_version("3.2") check in test_new_session_shell - Remove unused has_gte_version import
1 parent 07ba797 commit 858329d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/legacy_api/test_server.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import pytest
1010

11-
from libtmux.common import has_gte_version
1211
from libtmux.server import Server
1312

1413
if t.TYPE_CHECKING:
@@ -130,10 +129,7 @@ def test_new_session_shell(server: Server) -> None:
130129
pane_start_command = pane.get("pane_start_command")
131130
assert pane_start_command is not None
132131

133-
if has_gte_version("3.2"):
134-
assert pane_start_command.replace('"', "") == cmd
135-
else:
136-
assert pane_start_command == cmd
132+
assert pane_start_command.replace('"', "") == cmd
137133

138134

139135
def test_no_server_sessions() -> None:

0 commit comments

Comments
 (0)