Skip to content

Commit 67893df

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c3d7a7c commit 67893df

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/checkers/unittest_stdlib.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,12 @@ def infer_func(
7171

7272
def test_importlib_read_text_not_deprecated(self) -> None:
7373
"""Ensure importlib.resources.read_text is NOT flagged as deprecated."""
74-
assign_node = astroid.extract_node("""
74+
assign_node = astroid.extract_node(
75+
"""
7576
from importlib.resources import read_text
7677
data = read_text("mypkg", "file.txt")
77-
""")
78+
"""
79+
)
7880
call_node = assign_node.value # The value of the Assign node is the Call node
7981
with self.assertNoMessages():
8082
self.checker.visit_call(call_node)
81-
82-
83-

0 commit comments

Comments
 (0)