File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,10 @@ def test_set_and_show_options(session: Session) -> None:
236
236
237
237
window .set_option ("main-pane-height" , 40 )
238
238
assert window .show_option ("main-pane-height" ) == 40
239
- assert window .show_options ()["main-pane-height" ] == 40
239
+
240
+ # By default, show-options will session scope, even if target is a window
241
+ with pytest .raises (KeyError ):
242
+ assert window .show_options ()["main-pane-height" ] == 40
240
243
241
244
if has_gte_version ("2.3" ):
242
245
window .set_option ("pane-border-format" , " #P " )
Original file line number Diff line number Diff line change @@ -270,7 +270,10 @@ def test_set_and_show_window_options(session: Session) -> None:
270
270
271
271
window .set_option ("main-pane-height" , 40 )
272
272
assert window .show_option ("main-pane-height" ) == 40
273
- assert window .show_options ()["main-pane-height" ] == 40
273
+
274
+ # By default, show-options will session scope, even if target is a window
275
+ with pytest .raises (KeyError ):
276
+ assert window .show_options ()["main-pane-height" ] == 40
274
277
275
278
if has_gte_version ("2.3" ):
276
279
window .set_option ("pane-border-format" , " #P " )
You can’t perform that action at this time.
0 commit comments