Skip to content

Commit 1d547c5

Browse files
committed
fix(builder,tests): Fix warnings
1 parent 9ab3630 commit 1d547c5

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/tmuxp/workspace/builder.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,6 @@ def get_pane_shell():
492492
assert p.pane_id is not None
493493
w.select_pane(p.pane_id)
494494

495-
w.server._update_panes()
496-
497495
yield p, pconf
498496

499497
def config_after_window(self, w, wconf):

tests/workspace/test_builder.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ def test_focus_pane_index(session):
107107
def f():
108108
nonlocal p
109109
p = w.attached_pane
110-
p.server._update_panes()
111110
return p.pane_current_path == pane_path
112111

113112
assert retry_until(f)
@@ -126,7 +125,6 @@ def f():
126125
def f():
127126
nonlocal p
128127
p = window3.attached_pane
129-
p.server._update_panes()
130128
return p.pane_current_path == pane_path
131129

132130
assert retry_until(f)
@@ -510,7 +508,6 @@ def test_start_directory(session, tmp_path: pathlib.Path):
510508
for p in window.panes:
511509

512510
def f():
513-
p.server._update_panes()
514511
pane_path = p.pane_current_path
515512
return path in pane_path or pane_path == path
516513

@@ -560,7 +557,6 @@ def test_start_directory_relative(session, tmp_path: pathlib.Path):
560557
for p in window.panes:
561558

562559
def f():
563-
p.server._update_panes()
564560
# Handle case where directories resolve to /private/ in OSX
565561
pane_path = p.pane_current_path
566562
return path in pane_path or pane_path == path
@@ -636,7 +632,6 @@ def test_pane_order(session):
636632
pane_path = pane_paths[p_index - pane_base_index]
637633

638634
def f():
639-
p.server._update_panes()
640635
return p.pane_current_path == pane_path
641636

642637
assert retry_until(f)
@@ -1227,7 +1222,6 @@ def test_first_pane_start_directory(session, tmp_path: pathlib.Path):
12271222
for path, p in zip(dirs, window.panes):
12281223

12291224
def f():
1230-
p.server._update_panes()
12311225
pane_path = p.pane_current_path
12321226
return path in pane_path or pane_path == path
12331227

0 commit comments

Comments
 (0)