From 5d378cd8d0befb93a730bc03aaa78c06f0d04305 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 9 Dec 2023 17:25:28 +0900 Subject: [PATCH] python311Packages.pytest-mock: disable failing test (cherry picked from commit 7649aa56b9624f355174a5879221bd5740ecd712) --- pkgs/development/python-modules/pytest-mock/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/pytest-mock/default.nix b/pkgs/development/python-modules/pytest-mock/default.nix index 260c71ac71ff..47dcb3c7209b 100644 --- a/pkgs/development/python-modules/pytest-mock/default.nix +++ b/pkgs/development/python-modules/pytest-mock/default.nix @@ -1,5 +1,6 @@ { lib , buildPythonPackage +, pythonAtLeast , pythonOlder , fetchPypi , fetchpatch @@ -33,6 +34,12 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTests = lib.optionals (pythonAtLeast "3.11") [ + # Regression in 3.11.7 and 3.12.1; https://github.com/pytest-dev/pytest-mock/issues/401 + "test_failure_message_with_name" + "test_failure_message_with_no_name" + ]; + pythonImportsCheck = [ "pytest_mock" ]; meta = with lib; {