@@ -52,6 +52,7 @@ def simple_profiler():
52
52
return SimpleProfiler ()
53
53
54
54
55
+ @pytest .mark .flaky (reruns = 3 )
55
56
@pytest .mark .parametrize (["action" , "expected" ], [("a" , [3 , 1 ]), ("b" , [2 ]), ("c" , [1 ])])
56
57
def test_simple_profiler_durations (simple_profiler , action : str , expected : list ):
57
58
"""Ensure the reported durations are reasonably accurate."""
@@ -65,6 +66,7 @@ def test_simple_profiler_durations(simple_profiler, action: str, expected: list)
65
66
np .testing .assert_allclose (simple_profiler .recorded_durations [action ], expected , rtol = 0.2 )
66
67
67
68
69
+ @pytest .mark .flaky (reruns = 3 )
68
70
@pytest .mark .parametrize (["action" , "expected" ], [("a" , [3 , 1 ]), ("b" , [2 ]), ("c" , [1 ])])
69
71
def test_simple_profiler_iterable_durations (simple_profiler , action : str , expected : list ):
70
72
"""Ensure the reported durations are reasonably accurate."""
@@ -159,6 +161,7 @@ def advanced_profiler(tmpdir):
159
161
return AdvancedProfiler (dirpath = tmpdir , filename = "profiler" )
160
162
161
163
164
+ @pytest .mark .flaky (reruns = 3 )
162
165
@pytest .mark .parametrize (["action" , "expected" ], [("a" , [3 , 1 ]), ("b" , [2 ]), ("c" , [1 ])])
163
166
def test_advanced_profiler_durations (advanced_profiler , action : str , expected : list ):
164
167
@@ -173,6 +176,7 @@ def test_advanced_profiler_durations(advanced_profiler, action: str, expected: l
173
176
np .testing .assert_allclose (recored_total_duration , expected_total_duration , rtol = 0.2 )
174
177
175
178
179
+ @pytest .mark .flaky (reruns = 3 )
176
180
@pytest .mark .parametrize (["action" , "expected" ], [("a" , [3 , 1 ]), ("b" , [2 ]), ("c" , [1 ])])
177
181
def test_advanced_profiler_iterable_durations (advanced_profiler , action : str , expected : list ):
178
182
"""Ensure the reported durations are reasonably accurate."""
0 commit comments