From 0f737039604a4a7d58379bc1702e13d43e702f53 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 14 Jun 2025 23:03:33 +0200 Subject: [PATCH] python312Packages.coverage: disable failing tests on x86_64-darwin These tests fail on python312 and x86_64-darwin because the output hash of darwin causes an unexpected string to appear in the test output. --- pkgs/development/python-modules/coverage/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/coverage/default.nix b/pkgs/development/python-modules/coverage/default.nix index 6139480d86f5..2d3eb1d0dc1e 100644 --- a/pkgs/development/python-modules/coverage/default.nix +++ b/pkgs/development/python-modules/coverage/default.nix @@ -1,6 +1,8 @@ { lib, + stdenv, buildPythonPackage, + isPy312, fetchFromGitHub, flaky, hypothesis, @@ -61,6 +63,12 @@ buildPythonPackage rec { "test_no_duplicate_packages" "test_xdist_sys_path_nuttiness_is_fixed" "test_zipfile" + ] ++ lib.optionals (isPy312 && stdenv.hostPlatform.system == "x86_64-darwin") [ + # substring that may not be in string is part of the pytest output hash, which appears in the string + "test_nothing_specified" + "test_omit" + "test_omit_2" + "test_omit_as_string" ]; disabledTestPaths = [