mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 07:44:16 +00:00
Ensure that a not-found file produces an error
- this restores a flake8 2.x behaviour that was lost in the refactor
This commit is contained in:
parent
b56c88fe65
commit
bfb79b46c8
3 changed files with 14 additions and 6 deletions
|
|
@ -216,7 +216,7 @@ def test_report_order(results, expected_order):
|
|||
# Create a placeholder manager without arguments or plugins
|
||||
# Just add one custom file checker which just provides the results
|
||||
manager = checker.Manager(style_guide, [], [])
|
||||
manager.checkers = [file_checker]
|
||||
manager.checkers = manager._all_checkers = [file_checker]
|
||||
|
||||
# _handle_results is the first place which gets the sorted result
|
||||
# Should something non-private be mocked instead?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue