@@ -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 (
@@ -415,7 +415,7 @@ def test_environment_variables_logs(session: Session, caplog: pytest.LogCaptureF
415
415
sum (
416
416
1
417
417
for record in caplog .records
418
- if ' Cannot set environment for new panes and windows.' in record .msg
418
+ if " Cannot set environment for new panes and windows." in record .msg
419
419
)
420
420
# From both_overrides_in_first_pane.
421
421
== 1
@@ -443,11 +443,11 @@ def test_automatic_rename_option(session):
443
443
for p in builder .iter_create_panes (w , wconf ):
444
444
w .select_layout ("tiled" ) # fix glitch with pane size
445
445
p = p
446
- assert len (session ._windows ), window_count
446
+ assert len (session .windows ), window_count
447
447
assert isinstance (w , Window )
448
448
assert w .show_window_option ("automatic-rename" ) == "on"
449
449
450
- assert len (session ._windows ) == window_count
450
+ assert len (session .windows ) == window_count
451
451
452
452
window_count += 1
453
453
w .select_layout (wconf ["layout" ])
@@ -525,7 +525,7 @@ def test_start_directory(session, tmp_path: pathlib.Path):
525
525
526
526
def f ():
527
527
p .server ._update_panes ()
528
- pane_path = p .current_path
528
+ pane_path = p .pane_current_path
529
529
return path in pane_path or pane_path == path
530
530
531
531
# handle case with OS X adding /private/ to /tmp/ paths
@@ -576,7 +576,7 @@ def test_start_directory_relative(session, tmp_path: pathlib.Path):
576
576
def f ():
577
577
p .server ._update_panes ()
578
578
# Handle case where directories resolve to /private/ in OSX
579
- pane_path = p .current_path
579
+ pane_path = p .pane_current_path
580
580
return path in pane_path or pane_path == path
581
581
582
582
assert retry_until (f )
@@ -651,7 +651,7 @@ def test_pane_order(session):
651
651
652
652
def f ():
653
653
p .server ._update_panes ()
654
- return p .current_path == pane_path
654
+ return p .pane_current_path == pane_path
655
655
656
656
assert retry_until (f )
657
657
@@ -1244,7 +1244,7 @@ def test_first_pane_start_directory(session, tmp_path: pathlib.Path):
1244
1244
1245
1245
def f ():
1246
1246
p .server ._update_panes ()
1247
- pane_path = p .current_path
1247
+ pane_path = p .pane_current_path
1248
1248
return path in pane_path or pane_path == path
1249
1249
1250
1250
# handle case with OS X adding /private/ to /tmp/ paths
@@ -1268,10 +1268,10 @@ def test_layout_main_horizontal(session):
1268
1268
main_horizontal_pane , * panes = window .panes
1269
1269
1270
1270
def height (p ):
1271
- return int (p ._info [ " pane_height" ] )
1271
+ return int (p .pane_height )
1272
1272
1273
1273
def width (p ):
1274
- return int (p ._info [ " pane_width" ] )
1274
+ return int (p .pane_width )
1275
1275
1276
1276
main_horizontal_pane_height = height (main_horizontal_pane )
1277
1277
pane_heights = [height (pane ) for pane in panes ]
0 commit comments