-
Notifications
You must be signed in to change notification settings - Fork 732
Incompatibility with pytest capsys #1852
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
Comments
Sounds like it is because of the app context from the contextvar.
It is easy to patch the tests. But is there any chance to make it work without local fixes? I would prefer that the tests were not aware that they use prompt toolkit. |
So, here is my workaround for now. I haven't found an easy way to clear the contextvars for the general use case. But it works without changing the tests, which is good, i think.
|
Looks like this was addressed in #1880. |
Hi,
Here is something i have noticed while testing the project i manage.
Sounds like
print_formatted_text
andcapsys
does not interoperate together.Do you have any idea how to deal with that problem?
Does it make sense to patch one or the other project?
Test
Result
My env
The text was updated successfully, but these errors were encountered: