|
5 | 5 | from __future__ import annotations
|
6 | 6 |
|
7 | 7 | import contextlib
|
8 |
| -import warnings |
9 | 8 | from collections.abc import Generator, Iterator
|
10 | 9 | from typing import Any
|
11 | 10 |
|
@@ -78,23 +77,8 @@ def assertAddsMessages(
|
78 | 77 | assert expected_msg.line == gotten_msg.line, msg
|
79 | 78 | assert expected_msg.col_offset == gotten_msg.col_offset, msg
|
80 | 79 | if PY38_PLUS and not IS_PYPY or PY39_PLUS:
|
81 |
| - # TODO: 3.0: Remove deprecated missing arguments and remove the warning |
82 |
| - if not expected_msg.end_line == gotten_msg.end_line: |
83 |
| - warnings.warn( # pragma: no cover |
84 |
| - f"The end_line attribute of {gotten_msg} does not match " |
85 |
| - f"the expected value in {expected_msg}. In pylint 3.0 correct end_line " |
86 |
| - "attributes will be required for MessageTest.", |
87 |
| - DeprecationWarning, |
88 |
| - stacklevel=2, |
89 |
| - ) |
90 |
| - if not expected_msg.end_col_offset == gotten_msg.end_col_offset: |
91 |
| - warnings.warn( # pragma: no cover |
92 |
| - f"The end_col_offset attribute of {gotten_msg} does not match " |
93 |
| - f"the expected value in {expected_msg}. In pylint 3.0 correct end_col_offset " |
94 |
| - "attributes will be required for MessageTest.", |
95 |
| - DeprecationWarning, |
96 |
| - stacklevel=2, |
97 |
| - ) |
| 80 | + assert expected_msg.end_line == gotten_msg.end_line, msg |
| 81 | + assert expected_msg.end_col_offset == gotten_msg.end_col_offset, msg |
98 | 82 |
|
99 | 83 | def walk(self, node: nodes.NodeNG) -> None:
|
100 | 84 | """Recursive walk on the given node."""
|
|
0 commit comments