Skip to content

Commit 7542f76

Browse files
Neallin-917DanielNoord
authored andcommitted
test: distinguish pylint disable-next comments
1 parent 9f56767 commit 7542f76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/unit/test_regressions.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ def test_moving_comments_issue_726():
4747

4848
def test_pylint_disable_next_stays_with_first_import_issue_2054():
4949
test_input = (
50-
"# pylint: disable-next=no-name-in-module\n"
50+
"# pylint: disable-next=import-error\n"
5151
"from C import D\n"
5252
"# pylint: disable-next=no-name-in-module\n"
5353
"from A import B\n"
5454
)
5555
expected_output = (
5656
"# pylint: disable-next=no-name-in-module\n"
5757
"from A import B\n"
58-
"# pylint: disable-next=no-name-in-module\n"
58+
"# pylint: disable-next=import-error\n"
5959
"from C import D\n"
6060
)
6161

0 commit comments

Comments
 (0)