diff --git a/pygam/tests/test_penalties.py b/pygam/tests/test_penalties.py index bf6dd68a..43b3ee24 100644 --- a/pygam/tests/test_penalties.py +++ b/pygam/tests/test_penalties.py @@ -23,13 +23,13 @@ def test_single_spline_penalty(): monotonic_ and convexity_ should be 0. """ coef = np.array(1.0) - assert np.alltrue(derivative(1, coef).A == 0.0) - assert np.alltrue(l2(1, coef).A == 1.0) - assert np.alltrue(monotonic_inc(1, coef).A == 0.0) - assert np.alltrue(monotonic_dec(1, coef).A == 0.0) - assert np.alltrue(convex(1, coef).A == 0.0) - assert np.alltrue(concave(1, coef).A == 0.0) - assert np.alltrue(none(1, coef).A == 0.0) + assert np.all(derivative(1, coef).A == 0.0) + assert np.all(l2(1, coef).A == 1.0) + assert np.all(monotonic_inc(1, coef).A == 0.0) + assert np.all(monotonic_dec(1, coef).A == 0.0) + assert np.all(convex(1, coef).A == 0.0) + assert np.all(concave(1, coef).A == 0.0) + assert np.all(none(1, coef).A == 0.0) def test_wrap_penalty():