Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mark test_warn_if_generator_is_not_consumed flaky #2177

Merged
merged 1 commit into from
Aug 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading