Skip to content

Commit

Permalink
resolve PytestDeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-keller committed Dec 15, 2024
1 parent 4aacda4 commit c4827d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,14 @@ async def test_waiter_table_exists_failure(dynamodb_client):


@pytest.mark.parametrize('signature_version', ['v4'])
async def test_waiter_table_exists(
event_loop, dynamodb_client, dynamodb_table_def
):
async def test_waiter_table_exists(dynamodb_client, dynamodb_table_def):
table_name = dynamodb_table_def['TableName']

async def _create_table():
await asyncio.sleep(2)
await dynamodb_client.create_table(**dynamodb_table_def)

task = event_loop.create_task(_create_table())
task = asyncio.create_task(_create_table())
assert not task.done()

waiter = dynamodb_client.get_waiter('table_exists')
Expand Down

0 comments on commit c4827d6

Please sign in to comment.