-
-
Notifications
You must be signed in to change notification settings - Fork 880
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
replace pytest-asyncio and pytest-trio with anyio #2512
Conversation
graingert
commented
Dec 20, 2022
- Initially raised as PR comment: Update pytest-asyncio #2511 (review)
@@ -152,7 +152,7 @@ async def async_auth_flow( | |||
yield request | |||
|
|||
|
|||
@pytest.mark.asyncio | |||
@pytest.mark.anyio |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason these were not marked @pytest.mark.usefixtures("async_environment")
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah some of these tests used asyncio.Lock
so only worked on asyncio. I changed it to anyio.Lock
and they pass on trio or asyncio now
One less dependency gets my vote :) |
As a note, because @tomchristie mentioned before on Starlette that was not necessary, using I'm just mentioning, I'm not expressing my opinion. JFYK |
@@ -18,7 +18,7 @@ combine_as_imports = True | |||
addopts = -rxXs | |||
filterwarnings = | |||
error | |||
asyncio_mode = strict | |||
ignore: You seem to already have a custom sys.excepthook handler installed. I'll skip installing Trio's custom handler, but this means MultiErrors will not show full tracebacks.:RuntimeWarning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's causing this warning, and when can we expect to be able to remove this filter?