diff --git a/test/test_stack_sampler.py b/test/test_stack_sampler.py index fe073c72..da0b8477 100644 --- a/test/test_stack_sampler.py +++ b/test/test_stack_sampler.py @@ -6,7 +6,7 @@ from pyinstrument import stack_sampler -from .util import do_nothing +from .util import do_nothing, flaky_in_ci class SampleCounter: @@ -23,6 +23,7 @@ def test_create(): assert sampler is stack_sampler.get_stack_sampler() +@flaky_in_ci def test_get_samples(): sampler = stack_sampler.get_stack_sampler() counter = SampleCounter() @@ -45,6 +46,7 @@ def test_get_samples(): assert len(sampler.subscribers) == 0 +@flaky_in_ci def test_multiple_samplers(): sampler = stack_sampler.get_stack_sampler() counter_1 = SampleCounter() @@ -86,6 +88,7 @@ def test_multiple_samplers_async_error(): sampler.unsubscribe(counter_1.sample) +@flaky_in_ci def test_multiple_contexts(): sampler = stack_sampler.get_stack_sampler()