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
There is now a with statement as the first argument passed to my_custom_assert. pytest.raises also supports an expression syntax, so perhaps that should be used here as well.
Example input:
Output
There is now a
with
statement as the first argument passed tomy_custom_assert
.pytest.raises
also supports an expression syntax, so perhaps that should be used here as well.This came up in a real life project:
https://github.com/python-pillow/Pillow/blob/7bf5246b93cc89cfb9d6cca78c4719a943b10585/Tests/test_file_webp.py#L20
The text was updated successfully, but these errors were encountered: