Skip to content

Commit 0295879

Browse files
committed
add flaky to test_avg_std_and_npoints
1 parent 55a0295 commit 0295879

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adaptive/tests/test_average_learner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import random
22

3+
import flaky
34
import numpy as np
45

56
from adaptive.learner import AverageLearner
@@ -21,6 +22,7 @@ def test_only_returns_new_points():
2122
assert learner.ask(1)[0][0] == 10
2223

2324

25+
@flaky.flaky(max_runs=3)
2426
def test_avg_std_and_npoints():
2527
learner = AverageLearner(lambda x: x, atol=None, rtol=0.01)
2628

0 commit comments

Comments
 (0)