Skip to content

Commit f8f6d11

Browse files
committed
mock.call_args.kwargs was added after python 3.7, switched to the old way to allow 3.7 and below pass
1 parent 9be0971 commit f8f6d11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubernetes/base/config/exec_provider_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def test_run_in_dir(self, mock):
147147
instance.communicate.return_value = (self.output_ok, '')
148148
ep = ExecProvider(self.input_ok, '/some/directory')
149149
ep.run()
150-
self.assertEqual(mock.call_args.kwargs['cwd'], '/some/directory')
150+
self.assertEqual(mock.call_args[1]['cwd'], '/some/directory')
151151

152152

153153
if __name__ == '__main__':

0 commit comments

Comments
 (0)