Skip to content

Broken with Sphinx 7.2 #232

@bnavigator

Description

@bnavigator

Sphinx 7.2 removed path from sphinx.testing.util.

sphinx-doc/sphinx#11526 looks like you were supposed to use sphinx.testing.path, which is deprecated and will be removed in Sphinx 9

[   99s] ============================= test session starts ==============================
[   99s] platform linux -- Python 3.9.18, pytest-7.4.0, pluggy-1.0.0 -- /usr/bin/python3.9
[   99s] cachedir: .pytest_cache
[   99s] rootdir: /home/abuild/rpmbuild/BUILD/jupyter-sphinx-0.4.0
[  100s] collecting ... collected 0 items / 1 error
[  100s] 
[  100s] ==================================== ERRORS ====================================
[  100s] ____________________ ERROR collecting tests/test_execute.py ____________________
[  100s] ImportError while importing test module '/home/abuild/rpmbuild/BUILD/jupyter-sphinx-0.4.0/tests/test_execute.py'.
[  100s] Hint: make sure your test modules/packages have valid Python names.
[  100s] Traceback:
[  100s] /usr/lib64/python3.9/importlib/__init__.py:127: in import_module
[  100s]     return _bootstrap._gcd_import(name[level:], package, level)
[  100s] tests/test_execute.py:15: in <module>
[  100s]     from sphinx.testing.util import SphinxTestApp, assert_node, path
[  100s] E   ImportError: cannot import name 'path' from 'sphinx.testing.util' (/usr/lib/python3.9/site-packages/sphinx/testing/util.py)
[  100s] =========================== short test summary info ============================
[  100s] ERROR tests/test_execute.py
[  100s] !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
[  100s] =============================== 1 error in 0.42s ===============================

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