MNT more informative message for arm64 test failure
@@ -579,8 +579,9 @@ def test_loadings_converges():
with pytest.warns(None) as record:
cca.fit(X, y)
- # ConvergenceWarning is not raised
- assert not record
+ # ConvergenceWarning should not be raised
+ if len(record) > 0:
+ pytest.fail(f"Unexpected warning: {str(record[0].message)}")
# Loadings converges to reasonable values
assert np.all(np.abs(cca.x_loadings_) < 1)
