@@ -108,11 +108,11 @@ def f():
108
108
nonlocal p
109
109
p = w .attached_pane
110
110
p .server ._update_panes ()
111
- return p .current_path == pane_path
111
+ return p .pane_current_path == pane_path
112
112
113
113
assert retry_until (f )
114
114
115
- assert p .current_path == pane_path
115
+ assert p .pane_current_path == pane_path
116
116
117
117
proc = session .cmd ("show-option" , "-gv" , "base-index" )
118
118
base_index = int (proc .stdout [0 ])
@@ -128,11 +128,11 @@ def f():
128
128
nonlocal p
129
129
p = window3 .attached_pane
130
130
p .server ._update_panes ()
131
- return p .current_path == pane_path
131
+ return p .pane_current_path == pane_path
132
132
133
133
assert retry_until (f )
134
134
135
- assert p .current_path == pane_path
135
+ assert p .pane_current_path == pane_path
136
136
137
137
138
138
@pytest .mark .skip (
@@ -514,7 +514,7 @@ def test_start_directory(session, tmp_path: pathlib.Path):
514
514
515
515
def f ():
516
516
p .server ._update_panes ()
517
- pane_path = p .current_path
517
+ pane_path = p .pane_current_path
518
518
return path in pane_path or pane_path == path
519
519
520
520
# handle case with OS X adding /private/ to /tmp/ paths
@@ -565,7 +565,7 @@ def test_start_directory_relative(session, tmp_path: pathlib.Path):
565
565
def f ():
566
566
p .server ._update_panes ()
567
567
# Handle case where directories resolve to /private/ in OSX
568
- pane_path = p .current_path
568
+ pane_path = p .pane_current_path
569
569
return path in pane_path or pane_path == path
570
570
571
571
assert retry_until (f )
@@ -640,7 +640,7 @@ def test_pane_order(session):
640
640
641
641
def f ():
642
642
p .server ._update_panes ()
643
- return p .current_path == pane_path
643
+ return p .pane_current_path == pane_path
644
644
645
645
assert retry_until (f )
646
646
@@ -1233,7 +1233,7 @@ def test_first_pane_start_directory(session, tmp_path: pathlib.Path):
1233
1233
1234
1234
def f ():
1235
1235
p .server ._update_panes ()
1236
- pane_path = p .current_path
1236
+ pane_path = p .pane_current_path
1237
1237
return path in pane_path or pane_path == path
1238
1238
1239
1239
# handle case with OS X adding /private/ to /tmp/ paths
@@ -1257,10 +1257,10 @@ def test_layout_main_horizontal(session):
1257
1257
main_horizontal_pane , * panes = window .panes
1258
1258
1259
1259
def height (p ):
1260
- return int (p ._info [ " pane_height" ] )
1260
+ return int (p .pane_height )
1261
1261
1262
1262
def width (p ):
1263
- return int (p ._info [ " pane_width" ] )
1263
+ return int (p .pane_width )
1264
1264
1265
1265
main_horizontal_pane_height = height (main_horizontal_pane )
1266
1266
pane_heights = [height (pane ) for pane in panes ]
0 commit comments