Skip to content

Commit 55092e7

Browse files
authored
Tests: Undo patch for Python 3.14.0 alpha 7; no longer required for 3.14.0 beta 2 (#13606)
1 parent 31e63d7 commit 55092e7

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

tests/test_extensions/test_ext_autodoc_configs.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,11 +1348,6 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None:
13481348
# default
13491349
options = {'members': None}
13501350
actual = do_autodoc(app, 'module', 'target.autodoc_type_aliases', options)
1351-
attr2_typeinfo: tuple[str, ...]
1352-
if sys.version_info >= (3, 14, 0, 'alpha', 7):
1353-
attr2_typeinfo = ()
1354-
else:
1355-
attr2_typeinfo = (' :type: int',)
13561351
assert list(actual) == [
13571352
'',
13581353
'.. py:module:: target.autodoc_type_aliases',
@@ -1373,7 +1368,7 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None:
13731368
'',
13741369
' .. py:attribute:: Foo.attr2',
13751370
' :module: target.autodoc_type_aliases',
1376-
*attr2_typeinfo,
1371+
' :type: int',
13771372
'',
13781373
' docstring',
13791374
'',
@@ -1426,10 +1421,6 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None:
14261421
'io.StringIO': 'my.module.StringIO',
14271422
}
14281423
actual = do_autodoc(app, 'module', 'target.autodoc_type_aliases', options)
1429-
if sys.version_info >= (3, 14, 0, 'alpha', 7):
1430-
attr2_typeinfo = ()
1431-
else:
1432-
attr2_typeinfo = (' :type: myint',)
14331424
assert list(actual) == [
14341425
'',
14351426
'.. py:module:: target.autodoc_type_aliases',
@@ -1450,7 +1441,7 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None:
14501441
'',
14511442
' .. py:attribute:: Foo.attr2',
14521443
' :module: target.autodoc_type_aliases',
1453-
*attr2_typeinfo,
1444+
' :type: myint',
14541445
'',
14551446
' docstring',
14561447
'',

0 commit comments

Comments
 (0)