Skip to content

Commit 290d390

Browse files
committed
Fix tests under Python 3.8.10 and 3.9.5
1 parent 76e2948 commit 290d390

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/unit/test_mkdocs_plugin.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ class MockPlugins:
1313

1414
# Mock importing `mkdocs.plugins`, since it can't be imported normally.
1515
real_import = __import__
16-
with mock.patch('builtins.__import__',
17-
lambda name, *args: (MockPlugins if name == 'mkdocs.plugins'
18-
else real_import(name, *args))):
16+
with mock.patch('builtins.__import__', lambda name, *args, **kwargs: (
17+
MockPlugins if name == 'mkdocs.plugins' else
18+
real_import(name, *args, **kwargs)
19+
)):
1920
from mike import mkdocs_plugin
2021

2122

0 commit comments

Comments
 (0)