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

Broken with Sphinx 7.2 #232

Closed
bnavigator opened this issue Sep 14, 2023 · 0 comments · Fixed by #236
Closed

Broken with Sphinx 7.2 #232

bnavigator opened this issue Sep 14, 2023 · 0 comments · Fixed by #236

Comments

@bnavigator
Copy link

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 ===============================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant