Michael Seifert

Results 244 comments of Michael Seifert

Since this issue seems to be fixed with more recent versions of pytest and I cannot reproduce it, I'll close the ticket until further evidence arrives.

@mike-oakley Any chance you can cook up a reproducer so we can get to the bottom of this?

There's really not much I can do to help, unless someone can provide a minimal reproducer.

@devTarik Thanks for backing this issue up with some more code. However, when I try to run your example, I get the following error: ``` @pytest.fixture(scope='session') async def http_client(): >...

It's unfortunate that you need boilerplate code to work around this. I expect the issue to resolve itself with #871 .

As of pytest-asyncio v0.24 async fixtures can have different scopes for caching (`scope=…`) and for the event loop used to run the fixture (`loop_scope=…`). It's still not possible to use...

@av223119 Thanks for the response. In my opinion, the changes in v0.24 are enough to address this. Therefore, I'll close the issue. Feel free to continue the discussion if you...

@jvtm Could you try https://github.com/pytest-dev/pytest-asyncio/pull/838 and report if it solves your issue?

@jvtm The linked PR seems to fix the issue with your code example