Skip to content

Commit d7682c2

Browse files
committed
modified test path
1 parent a01ee3a commit d7682c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_import_module_shadowing.py renamed to tests/checkers/unittest_import_module_shadowing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE
33
# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt
44

5+
# pylint: disable=missing-docstring,consider-using-with,trailing-whitespace,unused-import
6+
57
import os
68
import tempfile
79
import unittest
@@ -25,7 +27,7 @@ def setUp(self) -> None:
2527

2628
self.test_file = os.path.join(self.tempdir.name, "main.py")
2729

28-
def _run_pylint(self, code: str) -> list:
30+
def _run_pylint(self, code: str) -> list[str]:
2931
with open(self.test_file, "w", encoding="utf-8") as f:
3032
f.write(code)
3133

@@ -88,4 +90,3 @@ def test_shadowed_import_without_call(self) -> None:
8890

8991
if __name__ == "__main__":
9092
unittest.main()
91-

0 commit comments

Comments
 (0)