Skip to content

Commit 6174a49

Browse files
amysparkjpakkane
authored andcommitted
tests: Fix shutil.which shim signature not accepting kwargs
1 parent c3ea8d5 commit 6174a49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unittests/failuretests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ def new_search(self, name, search_dirs, exclude_paths):
4141
return [None]
4242
return old_search(self, name, search_dirs, exclude_paths)
4343

44-
def new_which(cmd, *kwargs):
44+
def new_which(cmd, **kwargs):
4545
if cmd == 'pkg-config':
4646
return None
47-
return old_which(cmd, *kwargs)
47+
return old_which(cmd, **kwargs)
4848

4949
shutil.which = new_which
5050
ExternalProgram._search = new_search

0 commit comments

Comments
 (0)