We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9511a60 commit 2761937Copy full SHA for 2761937
1 file changed
tests/conftest.py
@@ -13,7 +13,7 @@
13
14
import numpy as np
15
import pandas as pd
16
-from numpy.random import choice, rand, randint
+from numpy.random import choice, default_rng, rand, randint
17
from pytest import fixture
18
from xarray import DataArray, Dataset
19
@@ -84,8 +84,9 @@ def patch_broadcast_compat_data():
84
@fixture(autouse=True)
85
def random():
86
"""Set random seed for all tests to make them reproducible."""
87
- rand.seed(RANDOM_SEED)
+ rng = default_rng(RANDOM_SEED)
88
np.random.seed(RANDOM_SEED)
89
+ return rng
90
91
92
def compare_df(
0 commit comments