Skip to content

Documentation about how to set loop scope wrong? #905

@finswimmer

Description

@finswimmer

Hey,

the documentation here https://pytest-asyncio.readthedocs.io/en/latest/how-to-guides/run_session_tests_in_same_loop.html is saying that one can set the scope of the loop by the parameter loop_scope in either pytest.mark.asyncio or the given method in the conftest.py.

This doesn't work for me. But it works if I name the parameter scope instead. Is this a documentation issue?

Also setting the default scope as described https://pytest-asyncio.readthedocs.io/en/latest/how-to-guides/change_default_fixture_loop.html doesn't have any effect. Maybe that's related to my discovery above?

I'm using pytest-asyncio version 0.23.8.

fin swimmer

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