Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test_renderer so that tests pass with Sphinx 7.2. #976

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gareth-rees
Copy link

@gareth-rees gareth-rees commented Mar 31, 2024

Sphinx was updated in in pull request sphinx-doc/sphinx#11526 (July 2023) so that importing sphinx.testing.path no longer causes Sphinx application paths to belong to the class sphinx.testing.path.path, which has a makedirs method.

Instead, Sphinx application paths are now ordinary Path objects which lack this method, so we use os.makedirs instead. This is backwards compatible as sphinx.testing.path.path objects are pathlike and so accepted by os.makedirs.

Sphinx was updated in in pull request sphinx-doc/sphinx#11526 (July
2023) so that importing `sphinx.testing.path` no longer causes Sphinx
application paths to belong to the class `sphinx.testing.path.path`,
which has a `makedirs` method.

Instead, Sphinx application paths are now ordinary `Path` objects
which lack this method, so we use `os.makedirs` instead. This is
backwards compatible as `sphinx.testing.path.path` objects are
pathlike and so accepted by `os.makedirs`.

Fixes issue breathe-doc#975.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant