Method: pylint.testutils.lint_module_test.LintModuleTest._get_expected
Calls: 785, Exceptions: 0, Paths: 2Back
Path 1: 563 calls (0.72)
tuple (563)
1def _get_expected(self) -> tuple[MessageCounter, list[OutputLine]]:
2 with self._open_source_file() as f:
3 expected_msgs = self.get_expected_messages(f)
4 if not expected_msgs:
5 expected_msgs = Counter()
6 with self._open_expected_file() as f:
7 expected_output_lines = [
8 OutputLine.from_csv(row, self._check_end_position)
9 for row in csv.reader(f, "test")
10 ]
11 return expected_msgs, expected_output_lines
Path 2: 222 calls (0.28)
tuple (222)
1def _get_expected(self) -> tuple[MessageCounter, list[OutputLine]]:
2 with self._open_source_file() as f:
3 expected_msgs = self.get_expected_messages(f)
4 if not expected_msgs:
5 expected_msgs = Counter()
6 with self._open_expected_file() as f:
7 expected_output_lines = [
8 OutputLine.from_csv(row, self._check_end_position)
9 for row in csv.reader(f, "test")
10 ]
11 return expected_msgs, expected_output_lines