def test_exceptions_mean(X):
    with pytest.raises(Exception):
        mean(X)
def test_ensemblestats_mean(X, ignore_nan, X_thr, expected):
    """Test ensemblestats mean."""
    assert_array_almost_equal(mean(X, ignore_nan, X_thr), expected)