From dc6728cde4986eedc4deab18b28ebf9313901151 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 23 Apr 2025 10:58:35 +0200 Subject: [PATCH] python312Packages.dask-image: fix failing test --- pkgs/development/python-modules/dask-image/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/dask-image/default.nix b/pkgs/development/python-modules/dask-image/default.nix index 1c9e706633b7..f22fb5bda5e9 100644 --- a/pkgs/development/python-modules/dask-image/default.nix +++ b/pkgs/development/python-modules/dask-image/default.nix @@ -35,6 +35,9 @@ buildPythonPackage rec { postPatch = '' substituteInPlace dask_image/ndinterp/__init__.py \ --replace-fail "out_bounds.ptp(axis=1)" "np.ptp(out_bounds, axis=1)" + + substituteInPlace tests/test_dask_image/test_imread/test_core.py \ + --replace-fail "fh.save(" "fh.write(" ''; build-system = [ @@ -64,6 +67,7 @@ buildPythonPackage rec { # AttributeError: 'str' object has no attribute 'start' "test_find_objects" "test_3d_find_objects" + # AssertionError (comparing slices) "test_find_objects_with_empty_chunks" ];