diff --git a/tests/test_extensions/test_ext_autodoc.py b/tests/test_extensions/test_ext_autodoc.py index 73e8807e8fb..2c408f1ce44 100644 --- a/tests/test_extensions/test_ext_autodoc.py +++ b/tests/test_extensions/test_ext_autodoc.py @@ -1146,7 +1146,6 @@ def test_autodoc_descriptor(app): '', ' .. py:property:: Class.prop', ' :module: target.descriptor', - ' :canonical: target.descriptor.prop', '', ' Property.', '', diff --git a/tests/test_extensions/test_ext_autodoc_autoclass.py b/tests/test_extensions/test_ext_autodoc_autoclass.py index 6bb637afe40..55e4e1f02cd 100644 --- a/tests/test_extensions/test_ext_autodoc_autoclass.py +++ b/tests/test_extensions/test_ext_autodoc_autoclass.py @@ -219,7 +219,6 @@ def test_properties(app): '', ' .. py:property:: Foo.prop1', ' :module: target.properties', - ' :canonical: target.properties.prop1', ' :type: int', '', ' docstring', @@ -227,7 +226,6 @@ def test_properties(app): '', ' .. py:property:: Foo.prop1_with_type_comment', ' :module: target.properties', - ' :canonical: target.properties.prop1_with_type_comment', ' :type: int', '', ' docstring', @@ -235,7 +233,6 @@ def test_properties(app): '', ' .. py:property:: Foo.prop2', ' :module: target.properties', - ' :canonical: target.properties.prop2', ' :classmethod:', ' :type: int', '', @@ -244,7 +241,6 @@ def test_properties(app): '', ' .. py:property:: Foo.prop2_with_type_comment', ' :module: target.properties', - ' :canonical: target.properties.prop2_with_type_comment', ' :classmethod:', ' :type: int', '', diff --git a/tests/test_extensions/test_ext_autodoc_autoproperty.py b/tests/test_extensions/test_ext_autodoc_autoproperty.py index 189654b4fbe..b6d2125e25f 100644 --- a/tests/test_extensions/test_ext_autodoc_autoproperty.py +++ b/tests/test_extensions/test_ext_autodoc_autoproperty.py @@ -18,7 +18,6 @@ def test_properties(app): '', '.. py:property:: Foo.prop1', ' :module: target.properties', - ' :canonical: target.properties.prop1', ' :type: int', '', ' docstring', @@ -33,7 +32,6 @@ def test_class_properties(app): '', '.. py:property:: Foo.prop2', ' :module: target.properties', - ' :canonical: target.properties.prop2', ' :classmethod:', ' :type: int', '', @@ -51,7 +49,6 @@ def test_properties_with_type_comment(app): '', '.. py:property:: Foo.prop1_with_type_comment', ' :module: target.properties', - ' :canonical: target.properties.prop1_with_type_comment', ' :type: int', '', ' docstring', @@ -68,7 +65,6 @@ def test_class_properties_with_type_comment(app): '', '.. py:property:: Foo.prop2_with_type_comment', ' :module: target.properties', - ' :canonical: target.properties.prop2_with_type_comment', ' :classmethod:', ' :type: int', '', diff --git a/tests/test_extensions/test_ext_autodoc_configs.py b/tests/test_extensions/test_ext_autodoc_configs.py index defbdcc451d..b9fc34e5bdd 100644 --- a/tests/test_extensions/test_ext_autodoc_configs.py +++ b/tests/test_extensions/test_ext_autodoc_configs.py @@ -360,10 +360,10 @@ def test_autodoc_inherit_docstrings_for_inherited_members(app): '', ' .. py:method:: Derived.inheritedclassmeth()', ' :module: target.inheritance', + ' :canonical: target.inheritance.Base.inheritedclassmeth', ' :classmethod:', '', ' Inherited class method.', - ' :canonical: target.inheritance.Base.inheritedclassmeth', '', '', ' .. py:method:: Derived.inheritedstaticmeth(cls)', @@ -425,14 +425,12 @@ def test_autodoc_docstring_signature(app): '', ' .. py:property:: DocstringSig.prop1', ' :module: target', - ' :canonical: target.prop1', '', ' First line of docstring', '', '', ' .. py:property:: DocstringSig.prop2', ' :module: target', - ' :canonical: target.prop2', '', ' First line of docstring', ' Second line of docstring', @@ -486,7 +484,6 @@ def test_autodoc_docstring_signature(app): '', '', ' .. py:property:: DocstringSig.prop1', - ' :canonical: target.prop1', ' :module: target', '', ' DocstringSig.prop1(self)', @@ -494,7 +491,6 @@ def test_autodoc_docstring_signature(app): '', '', ' .. py:property:: DocstringSig.prop2', - ' :canonical: target.prop2', ' :module: target', '', ' First line of docstring', @@ -781,13 +777,11 @@ def test_autodoc_typehints_signature(app): '', ' .. py:property:: Math.path', ' :module: target.typehints', - ' :canonical: target.typehints.path', f' :type: ~{type_ppp}', '', '', ' .. py:property:: Math.prop', ' :module: target.typehints', - ' :canonical: target.typehints.prop', ' :type: int', '', '', @@ -908,12 +902,10 @@ def test_autodoc_typehints_none(app): '', ' .. py:property:: Math.path', ' :module: target.typehints', - ' :canonical: target.typehints.path', '', '', ' .. py:property:: Math.prop', ' :module: target.typehints', - ' :canonical: target.typehints.prop', '', '', '.. py:class:: NewAnnotation(i)', @@ -1599,13 +1591,11 @@ def test_autodoc_typehints_format_fully_qualified(app): '', ' .. py:property:: Math.path', ' :module: target.typehints', - ' :canonical: target.typehints.path', f' :type: {type_ppp}', '', '', ' .. py:property:: Math.prop', ' :module: target.typehints', - ' :canonical: target.typehints.prop', ' :type: int', '', '', diff --git a/tests/test_extensions/test_ext_autodoc_preserve_defaults.py b/tests/test_extensions/test_ext_autodoc_preserve_defaults.py index a5d3de843ae..b7b4fcf7027 100644 --- a/tests/test_extensions/test_ext_autodoc_preserve_defaults.py +++ b/tests/test_extensions/test_ext_autodoc_preserve_defaults.py @@ -53,35 +53,30 @@ def test_preserve_defaults(app): '', ' .. py:property:: MultiLine.prop1', ' :module: target.preserve_defaults', - ' :canonical: target.preserve_defaults.prop1', '', ' docstring', '', '', ' .. py:property:: MultiLine.prop2', ' :module: target.preserve_defaults', - ' :canonical: target.preserve_defaults.prop2', '', ' docstring', '', '', ' .. py:property:: MultiLine.prop3', ' :module: target.preserve_defaults', - ' :canonical: target.preserve_defaults.prop3', '', ' docstring', '', '', ' .. py:property:: MultiLine.prop4', ' :module: target.preserve_defaults', - ' :canonical: target.preserve_defaults.prop4', '', ' docstring', '', '', ' .. py:property:: MultiLine.prop5', ' :module: target.preserve_defaults', - ' :canonical: target.preserve_defaults.prop5', '', ' docstring', '',