diff options
author | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-09-25 11:33:37 +0200 |
---|---|---|
committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-10-02 12:41:40 +0200 |
commit | 1cb8c5672047137f2a50bb2ff7d1973b11d6171f (patch) | |
tree | f4669bdff2683911bfceef00935f6cd9e605917d /tests/test_domain_py.py | |
parent | a0e986c6b074b8f206faa27d0dc66ea9ed69fb85 (diff) | |
download | sphinx-git-1cb8c5672047137f2a50bb2ff7d1973b11d6171f.tar.gz |
py nodes, BitOr
Diffstat (limited to 'tests/test_domain_py.py')
-rw-r--r-- | tests/test_domain_py.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_domain_py.py b/tests/test_domain_py.py index b111e5276..d9851ca34 100644 --- a/tests/test_domain_py.py +++ b/tests/test_domain_py.py @@ -19,7 +19,7 @@ from sphinx import addnodes from sphinx.addnodes import (desc, desc_addname, desc_annotation, desc_content, desc_name, desc_optional, desc_parameter, desc_parameterlist, desc_returns, desc_sig_name, desc_sig_operator, desc_sig_punctuation, - desc_signature, pending_xref) + desc_signature, desc_sig_space, pending_xref) from sphinx.domains import IndexEntry from sphinx.domains.python import (PythonDomain, PythonModuleIndex, _parse_annotation, _pseudo_parse_arglist, py_sig_re) @@ -484,9 +484,9 @@ def test_pyfunction_with_union_type_operator(app): [desc_sig_punctuation, ":"], " ", [desc_sig_name, ([pending_xref, "int"], - " ", + desc_sig_space, [desc_sig_punctuation, "|"], - " ", + desc_sig_space, [pending_xref, "None"])])])]) @@ -553,9 +553,9 @@ def test_pydata_with_union_type_operator(app): ([desc_name, "version"], [desc_annotation, (": ", [pending_xref, "int"], - " ", + desc_sig_space, [desc_sig_punctuation, "|"], - " ", + desc_sig_space, [pending_xref, "str"])])) |