From 33ddeff83336d4a091ffe5ecf9cf4e4f0f300065 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 27 Dec 2025 17:31:55 +0000 Subject: [PATCH] python3Packages.flax: ignore FutureWarning in tests (present since keras 3.13.0) --- pkgs/development/python-modules/flax/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/flax/default.nix b/pkgs/development/python-modules/flax/default.nix index e96da46fe386..7ad8ea62a125 100644 --- a/pkgs/development/python-modules/flax/default.nix +++ b/pkgs/development/python-modules/flax/default.nix @@ -83,6 +83,11 @@ buildPythonPackage rec { tensorflow ]; + pytestFlags = [ + # FutureWarning: In the future `np.object` will be defined as the corresponding NumPy scalar. + "-Wignore::FutureWarning" + ]; + disabledTestPaths = [ # Docs test, needs extra deps + we're not interested in it. "docs/_ext/codediff_test.py"