In the same commit, sphinx.testing.path was deprecated in favor of pathlib. So instead of switching to sphinx.testing.path, switch directly to pathlib for new Sphinx versions.
This fixes the following error:
tests/test_basic.py:7: in <module>
from sphinx.testing.util import path as Path
E ImportError: cannot import name 'path' from 'sphinx.testing.util'
The
path
class insphinx.testing.util
was a re-export fromsphinx.testing.path
, but that re-export was removed in https://github.com/sphinx-doc/sphinx/commit/49d830467098cc14.In the same commit,
sphinx.testing.path
was deprecated in favor of pathlib. So instead of switching tosphinx.testing.path
, switch directly topathlib
for new Sphinx versions.This fixes the following error: