Skip to content

Commit c85297c

Browse files
committed
review fixes| Annotates and makes explicit invalid types being pass to init
1 parent 2848594 commit c85297c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_check_parallel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ def test_worker_initialize(self):
8989

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

9597
def test_worker_check_single_file_no_checkers(self):

0 commit comments

Comments
 (0)