11
11
from .test_ext_autodoc import do_autodoc
12
12
13
13
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
15
15
16
16
17
17
@contextmanager
@@ -1628,7 +1628,7 @@ def test_autodoc_default_options(app):
1628
1628
assert ' Iterate squares of each value.' in actual
1629
1629
if not IS_PYPY :
1630
1630
assert ' .. py:attribute:: CustomIter.__weakref__' in actual
1631
- if IS_PY313_AND_LATER :
1631
+ if IS_PY312_AND_LATER :
1632
1632
assert ' list of weak references to the object' in actual
1633
1633
else :
1634
1634
assert ' list of weak references to the object (if defined)' in actual
@@ -1655,7 +1655,7 @@ def test_autodoc_default_options(app):
1655
1655
assert ' Iterate squares of each value.' in actual
1656
1656
if not IS_PYPY :
1657
1657
assert ' .. py:attribute:: CustomIter.__weakref__' in actual
1658
- if IS_PY313_AND_LATER :
1658
+ if IS_PY312_AND_LATER :
1659
1659
assert ' list of weak references to the object' in actual
1660
1660
else :
1661
1661
assert ' list of weak references to the object (if defined)' in actual
@@ -1705,7 +1705,7 @@ def test_autodoc_default_options_with_values(app):
1705
1705
assert ' Iterate squares of each value.' in actual
1706
1706
if not IS_PYPY :
1707
1707
assert ' .. py:attribute:: CustomIter.__weakref__' not in actual
1708
- if IS_PY313_AND_LATER :
1708
+ if IS_PY312_AND_LATER :
1709
1709
assert ' list of weak references to the object' not in actual
1710
1710
else :
1711
1711
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):
1732
1732
assert ' Iterate squares of each value.' in actual
1733
1733
if not IS_PYPY :
1734
1734
assert ' .. py:attribute:: CustomIter.__weakref__' not in actual
1735
- if IS_PY313_AND_LATER :
1735
+ if IS_PY312_AND_LATER :
1736
1736
assert ' list of weak references to the object' not in actual
1737
1737
else :
1738
1738
assert ' list of weak references to the object (if defined)' not in actual
0 commit comments