mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 05:26:53 +00:00
Update to new entry_points selection protocol.
This commit is contained in:
parent
6de8252c03
commit
f4238018c0
5 changed files with 17 additions and 21 deletions
|
|
@ -106,7 +106,7 @@ def mock_file_checker_with_plugin(plugin_target):
|
|||
with mock.patch.object(
|
||||
importlib_metadata,
|
||||
'entry_points',
|
||||
return_value={'flake8.extension': [entry_point]},
|
||||
return_value=[entry_point],
|
||||
):
|
||||
checks = manager.Checkers()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue