From fe5b4a99bfdd8ab9c9f55a1e2fce1eb6e94f0f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Fri, 22 Dec 2023 09:51:19 +0100 Subject: [PATCH] use new location of SerializableLock --- xarray/tests/test_distributed.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xarray/tests/test_distributed.py b/xarray/tests/test_distributed.py index bfc37121597..af801966616 100644 --- a/xarray/tests/test_distributed.py +++ b/xarray/tests/test_distributed.py @@ -27,6 +27,7 @@ ) import xarray as xr +from xarray.backends.dask_lock import SerializableLock from xarray.backends.locks import HDF5_LOCK, CombinedLock from xarray.tests import ( assert_allclose, @@ -273,7 +274,7 @@ async def test_async(c, s, a, b) -> None: def test_hdf5_lock() -> None: - assert isinstance(HDF5_LOCK, dask.utils.SerializableLock) + assert isinstance(HDF5_LOCK, SerializableLock) @gen_cluster(client=True)