summaryrefslogtreecommitdiff
path: root/tests/test_nodes.py
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2023-04-25 19:50:46 +0200
committerGitHub <noreply@github.com>2023-04-25 19:50:46 +0200
commit310b62ad450527859a8b59c385aeca35663560fb (patch)
tree8c8eb9a7366a0327ade4af9e83c7309b77f9f6cc /tests/test_nodes.py
parent08ed4136d83ba88d1e605e4afad71a5420396eec (diff)
downloadastroid-git-310b62ad450527859a8b59c385aeca35663560fb.tar.gz
Remove deprecated doc attribute (#2154)
Diffstat (limited to 'tests/test_nodes.py')
-rw-r--r--tests/test_nodes.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/test_nodes.py b/tests/test_nodes.py
index aabd2611..6303bbef 100644
--- a/tests/test_nodes.py
+++ b/tests/test_nodes.py
@@ -1535,9 +1535,6 @@ def test_get_doc() -> None:
"""
)
node: nodes.FunctionDef = astroid.extract_node(code) # type: ignore[assignment]
- with pytest.warns(DeprecationWarning) as records:
- assert node.doc == "Docstring"
- assert len(records) == 1
assert isinstance(node.doc_node, nodes.Const)
assert node.doc_node.value == "Docstring"
assert node.doc_node.lineno == 2
@@ -1553,9 +1550,6 @@ def test_get_doc() -> None:
"""
)
node = astroid.extract_node(code)
- with pytest.warns(DeprecationWarning) as records:
- assert node.doc is None
- assert len(records) == 1
assert node.doc_node is None