-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--asyncio-mode=auto don't find static tests #265
Comments
Interesting. How can I reproduce it locally? |
I don't really know, try this commands with my project.
Then rename or delete
P.S. I tried create a simple test project, but it works fine, so I give my prod project. |
File |
Here this file on github. |
Also I forgot say, before run tests, you need delete |
Sorry. Works fine for me. |
Here full logs of reproduce, check if you done all steps and have same result. |
I see something suspicious. |
Yes, it is works now. |
Should we fix it? |
I've only encountered static tests with the unittest framework so far, never with pytest. I agree that we probably shouldn't address this use case and close the issue. Feel free to voice concerns, though :) For posteriority: It turns out the This is weird since Python seems to recognize static coroutines correctly:
I stopped digging here, but there is a possibility that this needs to be addressed in pytest itself. (If it needs to be addressed at all) |
The plugin uses |
…292). (#295) Co-authored-by: Andrew Svetlov <[email protected]>
… to version 0.18.2 Andrew Svetlov (1): Update changelog Michael Seifert (2): fix: Add positional arguments to the synchronous test function wrapper. (#303) docs: Prepare release 0.18.2. (#304) dependabot[bot] (2): Bump actions/setup-python from 2 to 3 (#300) Bump actions/checkout from 2 to 3 (#301) kriek (1): Fix asyncio auto mode not marking static methods (closes pytest-dev/pytest-asyncio#265, closes pytest-dev/pytest-asyncio#292). (#295)
Full log
P.S. My computer is 64bit, I don't know why it is thinking that 32.
The text was updated successfully, but these errors were encountered: