Open tsangwpx opened 1 year ago
Thanks for the report and for the great reproducer! I can reproduce the issue.
This is a bit of a head-scratcher to me. Pytest-asyncio reimplements a bunch of pytest functionality related to fixture evaluation, in order to support async def
fixture functions. Something must go wrong there.
I hope that we can use more of the standard pytest functionality in the future, especially related to resolving fixtures requested by test functions.
Until this issue is fixed, the only workaround that comes to my mind is using --setup-show
, instead of --setup-plan
, if that's possible in your case.
Hello, I run:
pytest --setup-plan -sv tests/test.py
in container imagepython:3.11
and received the following error:It seems that
--setup-plan
causedloop
value became(None, 0, None)
instead of event loop instance.Here is
tests/test.py
:Python version: 3.11.6 pip freeze: