Skip to content

Commit 5e0e920

Browse files
committed
make the test less sensitive to numerical errors
1 parent efd893f commit 5e0e920

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/algorithms/tests/test_moments.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import numpy as np
2-
from nipype.testing import assert_equal
2+
from nipype.testing import assert_true
33
import tempfile
44
from nipype.algorithms.misc import calc_moments
55

@@ -130,9 +130,9 @@ def test_skew():
130130
f.write(data)
131131
f.flush()
132132
skewness = calc_moments(f.name, 3)
133-
yield assert_equal, skewness, np.array(
133+
yield assert_true, np.allclose(skewness, np.array(
134134
[-0.23418937314622, 0.2946365564954823, -0.05781002053540932,
135135
-0.3512508282578762, -
136136
0.07035664150233077, -
137137
0.01935867699166935,
138-
0.00483863369427428, 0.21879460029850167])
138+
0.00483863369427428, 0.21879460029850167]))

0 commit comments

Comments
 (0)