From a1a55880a8b423ec32a784155b310bde73f2698b Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 5 Nov 2025 00:47:27 +0100 Subject: [PATCH] python3Packages.sphinx: update disabled tests for python3.14 --- .../development/python-modules/sphinx/default.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/sphinx/default.nix b/pkgs/development/python-modules/sphinx/default.nix index bd38b3260472..a58c43ac6b5c 100644 --- a/pkgs/development/python-modules/sphinx/default.nix +++ b/pkgs/development/python-modules/sphinx/default.nix @@ -37,6 +37,7 @@ pytestCheckHook, pytest-xdist, typing-extensions, + writableTmpDirAsHomeHook, # reverse dependencies to test breathe, @@ -97,12 +98,9 @@ buildPythonPackage rec { pytestCheckHook pytest-xdist typing-extensions + writableTmpDirAsHomeHook ]; - preCheck = '' - export HOME=$TMPDIR - ''; - disabledTestPaths = lib.optionals isPyPy [ # internals are asserted which are sightly different in PyPy "tests/test_extensions/test_ext_autodoc.py" @@ -135,8 +133,6 @@ buildPythonPackage rec { "test_document_toc_only" # Assertion error "test_gettext_literalblock_additional" - # requires cython_0, but fails miserably on 3.11 - "test_cython" # Could not fetch remote image: http://localhost:7777/sphinx.png "test_copy_images" # ModuleNotFoundError: No module named 'fish_licence.halibut' @@ -149,9 +145,10 @@ buildPythonPackage rec { "test_load_mappings_cache_update" "test_load_mappings_cache_revert_update" ] - ++ lib.optionals (pythonAtLeast "3.12") [ - # https://github.com/sphinx-doc/sphinx/issues/12430 - "test_autodoc_type_aliases" + ++ lib.optionals (pythonAtLeast "3.14") [ + "test_autodoc_special_members" + "test_is_invalid_builtin_class" + "test_autosummary_generate_content_for_module_imported_members" ] ++ lib.optionals isPyPy [ # PyPy has not __builtins__ which get asserted