Skip to content

Commit

Permalink
review fixes| Annotates and makes explicit invalid types being pass t…
Browse files Browse the repository at this point in the history
…o init
  • Loading branch information
doublethefish committed Aug 6, 2020
1 parent 2848594 commit c85297c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_check_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def test_worker_initialize(self):

def test_worker_check_single_file_uninitialised(self):
pylint.lint.parallel._worker_linter = None
with pytest.raises(AttributeError, msg="Something has unexpectedly changed"):
with pytest.raises( # Objects that do not match the linter interface will fail
AttributeError, match="'NoneType' object has no attribute 'open'"
):
worker_check_single_file(_gen_file_data())

def test_worker_check_single_file_no_checkers(self):
Expand Down

0 comments on commit c85297c

Please sign in to comment.