From 928afefaf3686fd862078bc64c480ddd8bd44fb6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Nov 2021 18:43:24 +0100 Subject: [PATCH] python3Packages.requests-cache: disable flaky tests --- .../python-modules/requests-cache/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/requests-cache/default.nix b/pkgs/development/python-modules/requests-cache/default.nix index ca6cb7d23075..21732ed3a956 100644 --- a/pkgs/development/python-modules/requests-cache/default.nix +++ b/pkgs/development/python-modules/requests-cache/default.nix @@ -55,10 +55,19 @@ buildPythonPackage rec { timeout-decorator ]; - # Integration tests require local DBs - pytestFlagsArray = [ "tests/unit" ]; + pytestFlagsArray = [ + # Integration tests require local DBs + "tests/unit" + ]; - pythonImportsCheck = [ "requests_cache" ]; + disabledTests = [ + # Tests are flaky in the sandbox + "test_remove_expired_responses" + ]; + + pythonImportsCheck = [ + "requests_cache" + ]; meta = with lib; { description = "Persistent cache for requests library";