Skip to content

Commit 82d5497

Browse files
committed
Resolve a warning in the tests
1 parent b9650d5 commit 82d5497

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sphinx/ext/napoleon/docstring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def __init__(
358358
self._what: _AutodocObjType | Literal['object'] = what
359359
self._name = name
360360
self._obj = obj
361-
if options:
361+
if options is not None:
362362
try:
363363
self._no_index = options.no_index or options.noindex
364364
except (AttributeError, TypeError):

tests/test_ext_autodoc/test_ext_autodoc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,11 +2639,11 @@ def test_singledispatchmethod_classmethod_automethod() -> None:
26392639
]
26402640

26412641

2642-
@pytest.mark.skipif(
2643-
sys.version_info[:2] >= (3, 13),
2644-
reason='Cython does not support Python 3.13 yet.',
2642+
@pytest.mark.xfail(
2643+
sys.version_info[:2] >= (3, 15),
2644+
reason='Cython does not support Python 3.15 yet.',
26452645
)
2646-
@pytest.mark.skipif(pyximport is None, reason='cython is not installed')
2646+
@pytest.mark.skipif(pyximport is None, reason='Cython is not installed')
26472647
def test_cython() -> None:
26482648
options = {
26492649
'members': None,

0 commit comments

Comments
 (0)