From ae73d4201eeb96381305fd5d664b61b57da64bc8 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 15 Jun 2024 11:56:43 +0200 Subject: [PATCH 1/2] python312Packages.furl: disable failing test (cherry picked from commit 8bcc42fc59075cdf57533c486d43be119f339aad) --- pkgs/development/python-modules/furl/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/furl/default.nix b/pkgs/development/python-modules/furl/default.nix index fb9e9b6206633..4b4f81d1a2aad 100644 --- a/pkgs/development/python-modules/furl/default.nix +++ b/pkgs/development/python-modules/furl/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + pythonAtLeast, flake8, orderedmultidict, pytestCheckHook, @@ -35,6 +36,11 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTests = lib.optionals (pythonAtLeast "3.12") [ + # AssertionError: assert '//////path' == '////path' + "test_odd_urls" + ]; + pythonImportsCheck = [ "furl" ]; meta = with lib; { From 2c4b25d0e4e0222fc0e121532942ddd7270252ff Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 15 Jun 2024 17:02:11 +0200 Subject: [PATCH 2/2] python312Packages.sphinx: disable failing test (cherry picked from commit f3731419c8cbdb07f07e2eb7535e29fd6fd4b4c2) --- pkgs/development/python-modules/sphinx/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/sphinx/default.nix b/pkgs/development/python-modules/sphinx/default.nix index e781abafac194..d00f5b191f098 100644 --- a/pkgs/development/python-modules/sphinx/default.nix +++ b/pkgs/development/python-modules/sphinx/default.nix @@ -1,6 +1,7 @@ { lib, buildPythonPackage, + pythonAtLeast, pythonOlder, fetchFromGitHub, isPyPy, @@ -116,6 +117,10 @@ buildPythonPackage rec { # Could not fetch remote image: http://localhost:7777/sphinx.png "test_copy_images" ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # https://github.com/sphinx-doc/sphinx/issues/12430 + "test_autodoc_type_aliases" + ] ++ lib.optionals isPyPy [ # PyPy has not __builtins__ which get asserted # https://doc.pypy.org/en/latest/cpython_differences.html#miscellaneous