Skip to content

Commit a390bbc

Browse files
committed
Mark flaky worker pool tests to rerun up to 3 times
1 parent 44a1257 commit a390bbc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_freethreading.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ def test_worker_pool_apply(backend):
493493
assert result == 25
494494

495495

496+
@pytest.mark.flaky(reruns=3)
496497
def test_worker_pool_apply_with_kwds(backend):
497498
with backend.WorkerPool(workers=2) as pool:
498499
result = pool.apply(task_with_kwargs, (5,), {"y": 3})
@@ -509,6 +510,7 @@ def test_worker_pool_apply_async(backend):
509510
assert result == 49
510511

511512

513+
@pytest.mark.flaky(reruns=3)
512514
def test_worker_pool_apply_async_callback(backend):
513515
results = []
514516

0 commit comments

Comments
 (0)