@@ -52,6 +52,7 @@ def simple_profiler():
5252 return SimpleProfiler ()
5353
5454
55+ @pytest .mark .flaky (reruns = 3 )
5556@pytest .mark .parametrize (["action" , "expected" ], [("a" , [3 , 1 ]), ("b" , [2 ]), ("c" , [1 ])])
5657def test_simple_profiler_durations (simple_profiler , action : str , expected : list ):
5758 """Ensure the reported durations are reasonably accurate."""
@@ -65,6 +66,7 @@ def test_simple_profiler_durations(simple_profiler, action: str, expected: list)
6566 np .testing .assert_allclose (simple_profiler .recorded_durations [action ], expected , rtol = 0.2 )
6667
6768
69+ @pytest .mark .flaky (reruns = 3 )
6870@pytest .mark .parametrize (["action" , "expected" ], [("a" , [3 , 1 ]), ("b" , [2 ]), ("c" , [1 ])])
6971def test_simple_profiler_iterable_durations (simple_profiler , action : str , expected : list ):
7072 """Ensure the reported durations are reasonably accurate."""
@@ -159,6 +161,7 @@ def advanced_profiler(tmpdir):
159161 return AdvancedProfiler (dirpath = tmpdir , filename = "profiler" )
160162
161163
164+ @pytest .mark .flaky (reruns = 3 )
162165@pytest .mark .parametrize (["action" , "expected" ], [("a" , [3 , 1 ]), ("b" , [2 ]), ("c" , [1 ])])
163166def test_advanced_profiler_durations (advanced_profiler , action : str , expected : list ):
164167
@@ -173,6 +176,7 @@ def test_advanced_profiler_durations(advanced_profiler, action: str, expected: l
173176 np .testing .assert_allclose (recored_total_duration , expected_total_duration , rtol = 0.2 )
174177
175178
179+ @pytest .mark .flaky (reruns = 3 )
176180@pytest .mark .parametrize (["action" , "expected" ], [("a" , [3 , 1 ]), ("b" , [2 ]), ("c" , [1 ])])
177181def test_advanced_profiler_iterable_durations (advanced_profiler , action : str , expected : list ):
178182 """Ensure the reported durations are reasonably accurate."""
0 commit comments