@@ -35,7 +35,7 @@ def test_options(server: Server) -> None:
3535
3636 for obj in [server , session , window , pane ]:
3737 obj ._show_options ()
38- obj ._show_options (_global = True )
38+ obj ._show_options (global_ = True )
3939 obj ._show_options (include_inherited = True )
4040 obj ._show_options (include_hooks = True )
4141 with pytest .raises (OptionError ):
@@ -147,24 +147,24 @@ def test_options_grid(server: Server) -> None:
147147 pane = window .split_window (attach = False )
148148
149149 for include_inherited in [True , False ]:
150- for _global in [True , False ]:
150+ for global_ in [True , False ]:
151151 for obj in [server , session , window , pane ]:
152152 for scope in [
153153 OptionScope .Server ,
154154 OptionScope .Session ,
155155 OptionScope .Window ,
156156 ]:
157- obj_global_options_ = obj ._show_options (
157+ objglobal__options_ = obj ._show_options (
158158 scope = scope ,
159159 include_inherited = include_inherited ,
160- _global = _global ,
160+ global_ = global_ ,
161161 )
162- obj_global_options = Options (** obj_global_options_ )
163- for field in dataclasses .fields (obj_global_options ):
164- expected = obj_global_options_ .get (field .name .replace ("_" , "-" ))
162+ objglobal__options = Options (** objglobal__options_ )
163+ for field in dataclasses .fields (objglobal__options ):
164+ expected = objglobal__options_ .get (field .name .replace ("_" , "-" ))
165165
166166 if include_inherited and expected is None :
167- expected = obj_global_options_ .get (
167+ expected = objglobal__options_ .get (
168168 f"{ field .name .replace ('_' , '-' )} *" ,
169169 None ,
170170 )
@@ -175,18 +175,18 @@ def test_options_grid(server: Server) -> None:
175175 if expected is None :
176176 default_value = None
177177 assert (
178- getattr (obj_global_options , field .name , default_value )
178+ getattr (objglobal__options , field .name , default_value )
179179 == expected
180180 ), (
181181 f"Expect { field .name } to be { expected } when "
182- + f"scope={ scope } , _global= { _global } "
182+ + f"scope={ scope } , global_= { global_ } "
183183 )
184184 if (
185185 has_gte_version ("3.0" )
186186 and scope == OptionScope .Window
187- and _global
187+ and global_
188188 ):
189- assert obj_global_options .pane_base_index == 0
189+ assert objglobal__options .pane_base_index == 0
190190
191191
192192def test_custom_options (
0 commit comments