We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3d7a7c commit 67893dfCopy full SHA for 67893df
tests/checkers/unittest_stdlib.py
@@ -71,13 +71,12 @@ def infer_func(
71
72
def test_importlib_read_text_not_deprecated(self) -> None:
73
"""Ensure importlib.resources.read_text is NOT flagged as deprecated."""
74
- assign_node = astroid.extract_node("""
+ assign_node = astroid.extract_node(
75
+ """
76
from importlib.resources import read_text
77
data = read_text("mypkg", "file.txt")
- """)
78
79
+ )
80
call_node = assign_node.value # The value of the Assign node is the Call node
81
with self.assertNoMessages():
82
self.checker.visit_call(call_node)
-
83
0 commit comments