summaryrefslogtreecommitdiff
path: root/tests/test_domain_py.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_domain_py.py')
-rw-r--r--tests/test_domain_py.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test_domain_py.py b/tests/test_domain_py.py
index c4b87c737..19fcfd36f 100644
--- a/tests/test_domain_py.py
+++ b/tests/test_domain_py.py
@@ -866,10 +866,11 @@ def test_pyattribute(app):
assert_node(doctree[1][1][1], ([desc_signature, ([desc_name, "attr"],
[desc_annotation, ([desc_sig_punctuation, ':'],
desc_sig_space,
- [pending_xref, "Optional"],
- [desc_sig_punctuation, "["],
[pending_xref, "str"],
- [desc_sig_punctuation, "]"])],
+ desc_sig_space,
+ [desc_sig_punctuation, "|"],
+ desc_sig_space,
+ [pending_xref, "None"])],
[desc_annotation, (desc_sig_space,
[desc_sig_punctuation, '='],
desc_sig_space,
@@ -877,7 +878,7 @@ def test_pyattribute(app):
)],
[desc_content, ()]))
assert_node(doctree[1][1][1][0][1][2], pending_xref, **{"py:class": "Class"})
- assert_node(doctree[1][1][1][0][1][4], pending_xref, **{"py:class": "Class"})
+ assert_node(doctree[1][1][1][0][1][6], pending_xref, **{"py:class": "Class"})
assert 'Class.attr' in domain.objects
assert domain.objects['Class.attr'] == ('index', 'Class.attr', 'attribute', False)