From ebc84f4d8263c56133056672e2346aa63ef1f673 Mon Sep 17 00:00:00 2001 From: James Addison Date: Mon, 2 Jun 2025 12:19:41 +0100 Subject: [PATCH] Tests: unpick patch for Py314a7 no longer required with Py314b2 Partially reverts commit 0227606e71dc765ed60cd0ad2c580a43b5ffca4f. --- tests/test_extensions/test_ext_autodoc_configs.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/tests/test_extensions/test_ext_autodoc_configs.py b/tests/test_extensions/test_ext_autodoc_configs.py index eb351442673..ab7539190e0 100644 --- a/tests/test_extensions/test_ext_autodoc_configs.py +++ b/tests/test_extensions/test_ext_autodoc_configs.py @@ -1348,11 +1348,6 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None: # default options = {'members': None} actual = do_autodoc(app, 'module', 'target.autodoc_type_aliases', options) - attr2_typeinfo: tuple[str, ...] - if sys.version_info >= (3, 14, 0, 'alpha', 7): - attr2_typeinfo = () - else: - attr2_typeinfo = (' :type: int',) assert list(actual) == [ '', '.. py:module:: target.autodoc_type_aliases', @@ -1373,7 +1368,7 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None: '', ' .. py:attribute:: Foo.attr2', ' :module: target.autodoc_type_aliases', - *attr2_typeinfo, + ' :type: int', '', ' docstring', '', @@ -1426,10 +1421,6 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None: 'io.StringIO': 'my.module.StringIO', } actual = do_autodoc(app, 'module', 'target.autodoc_type_aliases', options) - if sys.version_info >= (3, 14, 0, 'alpha', 7): - attr2_typeinfo = () - else: - attr2_typeinfo = (' :type: myint',) assert list(actual) == [ '', '.. py:module:: target.autodoc_type_aliases', @@ -1450,7 +1441,7 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None: '', ' .. py:attribute:: Foo.attr2', ' :module: target.autodoc_type_aliases', - *attr2_typeinfo, + ' :type: myint', '', ' docstring', '',