From a14c69ba2bfa3dc8d8f7ba5e9bc16981772991da Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 23 May 2025 00:22:48 +0200 Subject: [PATCH] python312Packages.flax: ignore DeprecationWarning test failures --- pkgs/development/python-modules/flax/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/flax/default.nix b/pkgs/development/python-modules/flax/default.nix index 50abb5eadef9..2c0f2cdaf367 100644 --- a/pkgs/development/python-modules/flax/default.nix +++ b/pkgs/development/python-modules/flax/default.nix @@ -83,6 +83,13 @@ buildPythonPackage rec { tensorflow ]; + pytestFlagsArray = [ + "-W" + # DeprecationWarning: Triggering of __jax_array__() during abstractification is deprecated. + # To avoid this error, either explicitly convert your object using jax.numpy.array(), or register your object as a pytree. + "ignore::DeprecationWarning" + ]; + disabledTestPaths = [ # Docs test, needs extra deps + we're not interested in it. "docs/_ext/codediff_test.py"