Skip to content

Commit 2f02dbc

Browse files
committed
test fixes
1 parent 93c3b4f commit 2f02dbc

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

recursive_diff/tests/test_diff_arrays.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_diff_arrays(chunk):
5252
"abs_delta": [1.0],
5353
"rel_delta": [0.25],
5454
"x": ["b"],
55-
"y": np.asarray([1], dtype=np.int_),
55+
"y": np.asarray([1], dtype=np.int64),
5656
}
5757
).set_index(["x", "y"]),
5858
)
@@ -61,7 +61,7 @@ def test_diff_arrays(chunk):
6161
arrays["[3][data]"],
6262
pd.DataFrame(
6363
{"lhs": ["bar"], "rhs": ["baz"]},
64-
index=pd.Index(np.asarray([1], dtype=np.int_), name="dim_0"),
64+
index=pd.Index(np.asarray([1], dtype=np.int64), name="dim_0"),
6565
),
6666
)
6767

@@ -116,7 +116,7 @@ def test_brief_dims(chunk):
116116
arrays["[data]"],
117117
pd.DataFrame(
118118
{"diffs_count": np.asarray([1])},
119-
index=pd.Index(np.asarray([1]), name="y"),
119+
index=pd.Index(np.asarray([1], dtype=np.int64), name="y"),
120120
),
121121
)
122122

recursive_diff/tests/test_recursive_diff.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,10 +1367,10 @@ def test_lazy_datasets_without_dask(tmp_path):
13671367
[
13681368
# Different OSes and dependency versions have different peak RAM usages.
13691369
# These are the worst case scenarios across all combinations.
1370-
("netcdf", None, 100), # Uses more RAM on MacOS
1371-
("netcdf", {}, 50),
1372-
("zarr", None, 100),
1373-
("zarr", {}, 25), # ~5 MiB on Linux, up to 25 MiB on Windows
1370+
("netcdf", None, 110), # Uses more RAM on MacOS
1371+
("netcdf", {}, 60),
1372+
("zarr", None, 110),
1373+
("zarr", {}, 30), # ~5 MiB on Linux, up to 30 MiB on Windows
13741374
],
13751375
)
13761376
def test_lazy_datasets_huge(tmp_path, chunks, max_peak, format):

0 commit comments

Comments
 (0)