-
Notifications
You must be signed in to change notification settings - Fork 31
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
fail_if_not_removed decorator does not work for async methods #61
Comments
@chbndrhnns is the issue above still relevant? The following may help (except, mypy would have to be silenced with a Edit: added minimal support for typing (=> also a customized sync decorator).
|
Yes, the issue persists. Thanks so much for sharing your workaround. I have not used the library due to this problem. |
@hemidactylus if you wanted to get that into a PR I'd be happy to look at it and merge/release to get this out there. Sorry for delay on getting to other issues and PRs; I can probably make some time to get a bunch of them taken care of in a batch. |
I am using anyio with asyncio. It seems to me that the decorator messes with the async frameworks and causes the test to be skipped.
Example 1: this test is ignored with "SKIPPED (async def function and no async plugin installed (see warnings))"
Example 2: If I switch the decorators around, I see another message in addition: "coroutine 'test_async' was never awaited":
The text was updated successfully, but these errors were encountered: