From 8408e07d58bfe7c1eb29fd41a52f9cdefa239e4b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 10 Jan 2025 09:34:28 +0100 Subject: [PATCH] python313Packages.logutils: disable failing tests on Python 3.13 --- .../python-modules/logutils/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/logutils/default.nix b/pkgs/development/python-modules/logutils/default.nix index df79cc9dc3e4..d9afd8823653 100644 --- a/pkgs/development/python-modules/logutils/default.nix +++ b/pkgs/development/python-modules/logutils/default.nix @@ -4,9 +4,10 @@ buildPythonPackage, fetchPypi, pytestCheckHook, + pythonAtLeast, pythonOlder, - redis, redis-server, + redis, setuptools, }: @@ -41,10 +42,14 @@ buildPythonPackage rec { "test_hashandlers" ]; - disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin) [ - # Exception: unable to connect to Redis server - "tests/test_redis.py" - ]; + disabledTestPaths = + lib.optionals (stdenv.hostPlatform.isDarwin) [ + # Exception: unable to connect to Redis server + "tests/test_redis.py" + ] + ++ lib.optionals (pythonAtLeast "3.13") [ + "tests/test_dictconfig.py" + ]; pythonImportsCheck = [ "logutils" ];