TST use global_random_seed in sklearn/covariance/tests/test_elliptic_envelope.py
@@ -12,8 +12,8 @@ from sklearn.utils._testing import assert_array_equal
from sklearn.exceptions import NotFittedError
-def test_elliptic_envelope():
- rnd = np.random.RandomState(0)
+def test_elliptic_envelope(global_random_seed):
+ rnd = np.random.RandomState(global_random_seed)
X = rnd.randn(100, 10)
clf = EllipticEnvelope(contamination=0.1)
with pytest.raises(NotFittedError):
