mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 05:26:53 +00:00
Report error when non-exiting path is passed to flake8
This commit is contained in:
parent
f834499726
commit
59218ca323
3 changed files with 17 additions and 3 deletions
|
|
@ -321,3 +321,8 @@ def test_log_token(token, log_string):
|
|||
def test_count_parentheses(current_count, token_text, expected):
|
||||
"""Verify our arithmetic is correct."""
|
||||
assert processor.count_parentheses(current_count, token_text) == expected
|
||||
|
||||
|
||||
def test_nonexistent_file():
|
||||
with pytest.raises(IOError):
|
||||
processor.FileProcessor("foobar.py", options_from())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue