Skip to content

Commit a4c43ed

Browse files
authored
Merge pull request #1922 from yliaog/master
mock.call_args.kwargs was added after python 3.7, switched to the old…
2 parents d199529 + f8f6d11 commit a4c43ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubernetes/base/config/exec_provider_test.py

Lines changed: 1 addition & 1 deletion
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)