You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're getting a bunch of the following warnings when we run pytest
warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"
Currently it looks like we're defaulting to "none" which isn't a valid option according to what pytest prints out during startup:
You should figure out where to set that and fix it to something more appropriate. I'm not sure offhand which of the options it should be so you'll have to read the asyncio docs.
To reproduce
Steps to reproduce the behaviour:
run pytest on any file that includes async tests
Expected behaviour: no warnings
Actual behaviour: the warning above appears
cve-bin-tool uses https://www.conventionalcommits.org/ style for commit messages, and we have a test that checks the title of your pull request (PR). A good potential title for this one is in the title of this issue.
You can make an issue auto close by including a comment "fixes #ISSUENUMBER" in your PR comments where ISSUENUMBER is the actual number of the issue. This "links" the issue to the pull request.
Claiming issues:
You do not need to have an issue assigned to you before you work on it. To "claim" an issue either make a linked pull request or comment on the issue saying you'll be working on it.
If someone else has already commented or opened a pull request, assume it is claimed and find another issue to work on.
If it's been more than 1 week without progress, you can ask in a comment if the claimant is still working on it before claiming it yourself (give them at least 3 days to respond before assuming they have moved on).
The text was updated successfully, but these errors were encountered:
Hi @terriko. To fix the warning, I added 'asyncio_default_fixture_loop_scope = function' to 'setup.cfg'. This options seems appropriate, as it creates a new event loop for each test, providing isolation.
Description
We're getting a bunch of the following warnings when we run pytest
Currently it looks like we're defaulting to "none" which isn't a valid option according to what pytest prints out during startup:
You should figure out where to set that and fix it to something more appropriate. I'm not sure offhand which of the options it should be so you'll have to read the asyncio docs.
To reproduce
Steps to reproduce the behaviour:
Expected behaviour: no warnings
Actual behaviour: the warning above appears
Anything else?
Short tips for new contributors:
Claiming issues:
The text was updated successfully, but these errors were encountered: