Skip to content

Commit 116d74e

Browse files
committed
fix(B905) Add explicit strict=False to zip() calls in tests
This satisfies the B905 ruff check for Python 3.10+ where zip() requires an explicit strict parameter.
1 parent a21efca commit 116d74e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/cli/test_load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def test_load(
310310
assert server.socket_name is not None
311311

312312
monkeypatch.chdir(tmp_path)
313-
for session_name, config_path in zip(session_names, config_paths):
313+
for session_name, config_path in zip(session_names, config_paths, strict=False):
314314
tmuxp_config = pathlib.Path(
315315
config_path.format(tmp_path=tmp_path, TMUXP_CONFIGDIR=tmuxp_configdir),
316316
)

tests/workspace/test_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def test_start_directory(session: Session, tmp_path: pathlib.Path) -> None:
586586
assert session == builder.session
587587
dirs = ["/usr/bin", "/dev", str(test_dir), "/usr", "/usr"]
588588

589-
for path, window in zip(dirs, session.windows):
589+
for path, window in zip(dirs, session.windows, strict=False):
590590
for p in window.panes:
591591

592592
def f(path: str, p: Pane) -> bool:
@@ -641,7 +641,7 @@ def test_start_directory_relative(session: Session, tmp_path: pathlib.Path) -> N
641641

642642
dirs = ["/usr/bin", "/dev", str(test_dir), str(config_dir), str(config_dir)]
643643

644-
for path, window in zip(dirs, session.windows):
644+
for path, window in zip(dirs, session.windows, strict=False):
645645
for p in window.panes:
646646

647647
def f(path: str, p: Pane) -> bool:
@@ -1430,7 +1430,7 @@ def test_first_pane_start_directory(session: Session, tmp_path: pathlib.Path) ->
14301430

14311431
assert session.windows
14321432
window = session.windows[0]
1433-
for path, p in zip(dirs, window.panes):
1433+
for path, p in zip(dirs, window.panes, strict=False):
14341434

14351435
def f(path: str, p: Pane) -> bool:
14361436
pane_path = p.pane_current_path

0 commit comments

Comments
 (0)