Skip to content

Commit 199a3f1

Browse files
committed
using numpy.allclose
1 parent cf2fe52 commit 199a3f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra/engine/tests/test_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_numpy():
3535
arr = np.array([[1, 10], [2, 20]])
3636
fft.inputs.a = arr
3737
res = fft()
38-
assert (np.fft.fft(arr) == res.output.out).all()
38+
assert np.allclose(np.fft.fft(arr), res.output.out)
3939

4040

4141
@pytest.mark.xfail(reason="cp.dumps(func) depends on the system/setup, TODO!!")

0 commit comments

Comments
 (0)