@@ -124,13 +124,13 @@ def my_fdopen(fd, mode, *args):
124124
125125# noinspection PyShadowingNames
126126@pytest .mark .skipif (skip_no_argcomplete or skip_windows , reason = skip_reason )
127- def test_invalid_ifs (parser1 , mock ):
127+ def test_invalid_ifs (parser1 , mocker ):
128128 completer = CompletionFinder ()
129129
130- mock .patch .dict (os .environ , {'_ARGCOMPLETE' : '1' ,
130+ mocker .patch .dict (os .environ , {'_ARGCOMPLETE' : '1' ,
131131 '_ARGCOMPLETE_IFS' : '\013 \013 ' })
132132
133- mock .patch .object (os , 'fdopen' , my_fdopen )
133+ mocker .patch .object (os , 'fdopen' , my_fdopen )
134134
135135 with pytest .raises (SystemExit ):
136136 completer (parser1 , AutoCompleter (parser1 ), exit_method = sys .exit )
@@ -178,16 +178,16 @@ def fdopen_fail_8(fd, mode, *args):
178178
179179# noinspection PyShadowingNames
180180@pytest .mark .skipif (skip_no_argcomplete or skip_windows , reason = skip_reason )
181- def test_fail_alt_stdout (parser1 , mock ):
181+ def test_fail_alt_stdout (parser1 , mocker ):
182182 completer = CompletionFinder ()
183183
184184 comp_line = 'media movies list '
185- mock .patch .dict (os .environ , {'_ARGCOMPLETE' : '1' ,
185+ mocker .patch .dict (os .environ , {'_ARGCOMPLETE' : '1' ,
186186 '_ARGCOMPLETE_IFS' : '\013 ' ,
187187 'COMP_TYPE' : '63' ,
188188 'COMP_LINE' : comp_line ,
189189 'COMP_POINT' : str (len (comp_line ))})
190- mock .patch .object (os , 'fdopen' , fdopen_fail_8 )
190+ mocker .patch .object (os , 'fdopen' , fdopen_fail_8 )
191191
192192 try :
193193 choices = {'actor' : query_actors , # function
0 commit comments