Skip to content

Commit a19b501

Browse files
committed
Stricter tolerance in property tests
now that ml31415/numpy-groupies#90 was merged
1 parent 8e522b5 commit a19b501

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test_properties.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ def test_groupby_reduce(data, array, func: str) -> None:
111111
actual = actual.astype(cast_to)
112112

113113
note(("expected: ", expected, "actual: ", actual))
114-
tolerance = (
115-
{"rtol": 1e-13, "atol": 1e-15} if "var" in func or "std" in func else {"atol": 1e-15}
116-
)
114+
tolerance = {"atol": 1e-15}
117115
assert_equal(expected, actual, tolerance)
118116

119117

@@ -130,8 +128,8 @@ def test_scans(data, array: dask.array.Array, func: str) -> None:
130128
axis = array.ndim - 1
131129

132130
# Too many float32 edge-cases!
133-
if "cum" in func and array.dtype.kind == "f" and array.dtype.itemsize == 4:
134-
array = array.astype(np.float64)
131+
# if "cum" in func and array.dtype.kind == "f" and array.dtype.itemsize == 4:
132+
# array = array.astype(np.float64)
135133
numpy_array = array.compute()
136134
assume((np.abs(numpy_array) < 2**53).all())
137135

0 commit comments

Comments
 (0)