Skip to content

Commit

Permalink
mark test_warn_if_generator_is_not_consumed flaky (#2177)
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergolfer committed Aug 31, 2024
1 parent e83d27a commit 63229fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/async_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ async def f():
@pytest.mark.asyncio
async def test_task_context_infinite_loop_non_functions():
async with TaskContext(grace=0.01) as task_context:

async def f(x):
pass

Expand All @@ -115,6 +116,7 @@ async def f(x):
@pytest.mark.asyncio
async def test_task_context_infinite_loop_timeout(caplog):
async with TaskContext(grace=0.01) as task_context:

async def f():
await asyncio.sleep(5.0)

Expand Down Expand Up @@ -192,6 +194,7 @@ async def drain_queue(logs_queue):
assert len(drained_items) == 3


@pytest.mark.flaky(max_runs=3)
@pytest.mark.asyncio
async def test_warn_if_generator_is_not_consumed(caplog):
@warn_if_generator_is_not_consumed()
Expand Down

0 comments on commit 63229fb

Please sign in to comment.