Skip to content

Commit 6c2ecfc

Browse files
committed
🚧 test: set random seed for reproducibility in test_wrap_aggregate
1 parent 12a23a5 commit 6c2ecfc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_aggregators.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def test_arg_downsample_no_x_empty_series(downsampler, series):
109109
def test_wrap_aggregate(downsampler, gap_handler, series, index_type):
110110
series = series.copy()
111111
series.index = construct_index(series, index_type)
112+
np.random.seed(42)
112113
for n in np.random.randint(100, len(series) // 2, 6):
113114
# make sure n is even (required for MinMax downsampler)
114115
n = n - (n % 2)

0 commit comments

Comments
 (0)