From b8e8ef279380136c1ceccb4c442afec26d7ef41f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 12 May 2026 13:33:47 +0200 Subject: [PATCH] python3Packages.cryptography: disable problematic test Depending on the overcommit setting of the host system this test tries to allocate up to 1 TiB of virtual memory. --- pkgs/development/python-modules/cryptography/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index 729c1801daa7..56fb295e6dd9 100644 --- a/pkgs/development/python-modules/cryptography/default.nix +++ b/pkgs/development/python-modules/cryptography/default.nix @@ -71,6 +71,12 @@ buildPythonPackage rec { pytestFlags = [ "--disable-pytest-warnings" ]; + disabledTests = [ + # Tries to allocate 1 TiB with vm.overcommit_memory=1 + # https://github.com/pyca/cryptography/pull/14782 + "test_argon2_malloc_failure" + ]; + disabledTestPaths = [ # save compute time by not running benchmarks "tests/bench"