File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,12 @@ def test_set_and_show_options(session: Session) -> None:
247
247
248
248
# By default, show-options will session scope, even if target is a window
249
249
with pytest .raises (KeyError ):
250
- assert window .show_options ()["main-pane-height" ] == 40
250
+ if window .default_scope is None :
251
+ assert window .show_options ()["main-pane-height" ] == 40
252
+ else :
253
+ assert (
254
+ window .show_options (scope = OptionScope .Session )["main-pane-height" ] == 40
255
+ )
251
256
252
257
if has_gte_version ("3.0" ):
253
258
assert window .show_option ("main-pane-height" ) == 40
Original file line number Diff line number Diff line change @@ -280,7 +280,12 @@ def test_set_and_show_window_options(session: Session) -> None:
280
280
281
281
# By default, show-options will session scope, even if target is a window
282
282
with pytest .raises (KeyError ):
283
- assert window .show_options ()["main-pane-height" ] == 40
283
+ if window .default_scope is None :
284
+ assert window .show_options ()["main-pane-height" ] == 40
285
+ else :
286
+ assert (
287
+ window .show_options (scope = OptionScope .Session )["main-pane-height" ] == 40
288
+ )
284
289
285
290
if has_gte_version ("3.0" ):
286
291
assert window .show_option ("main-pane-height" ) == 40
You can’t perform that action at this time.
0 commit comments