From 3a3b88407b01ba8bdb1ccba529b0dacfccf08693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 1 Mar 2026 00:57:17 +0100 Subject: [PATCH] python313Packages.dogpile-cache: speed up test execution, ignore more flaky tests Following upstream https://github.com/sqlalchemy/dogpile.cache/blob/rel_1_5_0/pyproject.toml#L68 --- .../python-modules/dogpile-cache/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/dogpile-cache/default.nix b/pkgs/development/python-modules/dogpile-cache/default.nix index a68fcad4bdb3..ebea5ee74068 100644 --- a/pkgs/development/python-modules/dogpile-cache/default.nix +++ b/pkgs/development/python-modules/dogpile-cache/default.nix @@ -3,6 +3,7 @@ buildPythonPackage, fetchPypi, setuptools, + pytest-xdist, pytestCheckHook, mako, decorator, @@ -31,8 +32,14 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ - pytestCheckHook mako + pytest-xdist + pytestCheckHook + ]; + + disabledTestPaths = lib.optionals stdenv.hostPlatform.isLinux [ + # flaky + "tests/cache/test_dbm_backend.py" ]; disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ @@ -44,6 +51,8 @@ buildPythonPackage rec { "test_get_value_plus_created_registry_safe_cache_slow" "test_get_value_plus_created_registry_unsafe_cache" "test_quick" + "test_region_set_get_value" + "test_region_set_multiple_values" "test_return_while_in_progress" "test_slow" ];