Skip to content

Commit 8ce783f

Browse files
committed
Adjust the expected string to match Python HEAD changed output
1 parent 0345713 commit 8ce783f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_ext_autodoc_configs.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .test_ext_autodoc import do_autodoc
1212

1313
IS_PYPY = platform.python_implementation() == 'PyPy'
14-
IS_PY313_AND_LATER = sys.version_info.major == 3 and sys.version_info.minor >= 13
14+
IS_PY312_AND_LATER = sys.version_info.major == 3 and sys.version_info.minor >= 12
1515

1616

1717
@contextmanager
@@ -1628,7 +1628,7 @@ def test_autodoc_default_options(app):
16281628
assert ' Iterate squares of each value.' in actual
16291629
if not IS_PYPY:
16301630
assert ' .. py:attribute:: CustomIter.__weakref__' in actual
1631-
if IS_PY313_AND_LATER:
1631+
if IS_PY312_AND_LATER:
16321632
assert ' list of weak references to the object' in actual
16331633
else:
16341634
assert ' list of weak references to the object (if defined)' in actual
@@ -1655,7 +1655,7 @@ def test_autodoc_default_options(app):
16551655
assert ' Iterate squares of each value.' in actual
16561656
if not IS_PYPY:
16571657
assert ' .. py:attribute:: CustomIter.__weakref__' in actual
1658-
if IS_PY313_AND_LATER:
1658+
if IS_PY312_AND_LATER:
16591659
assert ' list of weak references to the object' in actual
16601660
else:
16611661
assert ' list of weak references to the object (if defined)' in actual
@@ -1705,7 +1705,7 @@ def test_autodoc_default_options_with_values(app):
17051705
assert ' Iterate squares of each value.' in actual
17061706
if not IS_PYPY:
17071707
assert ' .. py:attribute:: CustomIter.__weakref__' not in actual
1708-
if IS_PY313_AND_LATER:
1708+
if IS_PY312_AND_LATER:
17091709
assert ' list of weak references to the object' not in actual
17101710
else:
17111711
assert ' list of weak references to the object (if defined)' not in actual
@@ -1732,7 +1732,7 @@ def test_autodoc_default_options_with_values(app):
17321732
assert ' Iterate squares of each value.' in actual
17331733
if not IS_PYPY:
17341734
assert ' .. py:attribute:: CustomIter.__weakref__' not in actual
1735-
if IS_PY313_AND_LATER:
1735+
if IS_PY312_AND_LATER:
17361736
assert ' list of weak references to the object' not in actual
17371737
else:
17381738
assert ' list of weak references to the object (if defined)' not in actual

0 commit comments

Comments
 (0)