-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
error: cannot format Tests/test_file_libtiff.py: (-1, 8) #1605
Comments
Probably, but I don't trust myself to accurately know due to lack of familiarity with Black's formatting code so I'll someone else decide that. FYI: Jelle created a PR (#1594) where in verbose mode, Black prints out the trackback on failure so it's a bit more clear that there was an |
I'm pretty sure this is the same underlying issue as #1597, but when we fix it we should make sure both cases are covered. Closing this one as a duplicate though. |
That's useful! Same traceback:
|
This file now formats without errors with |
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
--check Tests/test_file_libtiff.py
Expected behavior A clear and concise description of what you expected to happen.
File formats.
Environment (please complete the following information):
Does this bug also happen on master? To answer this, you have two options:
Yes, see above.
Works with last release (the codebase is already formatted with that version):
Additional context Add any other context about the problem here.
Looks like it's this part:
https://github.com/python-pillow/Pillow/blob/e54909b97c213278accc8176f1c52e403f8afcb6/Tests/test_file_libtiff.py#L171-L174
(We're about to drop Python 3.5 and adopt f-strings, it's replacement is handled fine:
)
The text was updated successfully, but these errors were encountered: