Skip to content

Incompatible with sphinx 7.2 #21

@natsukium

Description

@natsukium

When I run the test with sphinx 7.2.0, I get the following error.
It seems to work fine up to 7.1.2.

Error in test test_all_members (repoze.sphinx.tests.test_autointerface.TestAutoInterface.test_all_members)
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/unittest/case.py", line 57, in testPartExecutor
    yield
  File "/usr/local/lib/python3.11/unittest/case.py", line 623, in run
    self._callTestMethod(testMethod)
  File "/usr/local/lib/python3.11/unittest/case.py", line 579, in _callTestMethod
    if method() is not None:
  File "/usr/local/lib/python3.11/site-packages/repoze/sphinx/tests/test_autointerface.py", line 118, in test_all_members
    all_results = self.assertResultContains('   .. method:: smoothTheDinglebop(schleem)')
  File "/usr/local/lib/python3.11/site-packages/repoze/sphinx/tests/test_autointerface.py", line 103, in assertResultContains
    inst.generate(**kw)
  File "/usr/local/lib/python3.11/site-packages/sphinx/ext/autodoc/__init__.py", line 1886, in generate
    return super().generate(more_content=more_content,
  File "/usr/local/lib/python3.11/site-packages/sphinx/ext/autodoc/__init__.py", line 940, in generate
    self.add_directive_header(sig)
  File "/usr/local/lib/python3.11/site-packages/repoze/sphinx/autointerface.py", line 35, in add_directive_header
    autodoc.Documenter.add_directive_header(self, sig)
  File "/usr/local/lib/python3.11/site-packages/sphinx/ext/autodoc/__init__.py", line 538, in add_directive_header
    if self.options.no_index or self.options.noindex:
AttributeError: 'Options' object has no attribute 'no_index'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions