Skip to content

Async fixtures appear to be broken with pytest==3.7 #90

Closed
@orf

Description

@orf

Given a simple async fixture and test:

@pytest.fixture()
async def my_client(aiohttp_client):
    return await aiohttp_client(make_app())

async def test_x(my_client):
    await my_client.get('/abc/')

Results in an exception: AttributeError: 'coroutine' object has no attribute 'get'

Downgrading to pytest<3.7 fixed this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions