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
test_pipeline_images.py fails with "TypeError: Skipped expected string as 'msg' parameter, got 'bool' instead." #5020
Comments
OK, looks like it's because of the Twisted upgrade, because of twisted/twisted@beafcd6 Note that the docs have already said "None or a string". |
Looks like changing |
My bad for getting this closed. Let’s keep it open until we figure out the right way forward. |
So the easy way is just replacing False with None. A better one is either fixing the no-PIL code path and adding tests for it (I don't see a reason for this additional complexity TBH) or dropping it and saying "we require PIL for tests". |
I still don’t see what’s wrong with our code. |
The class |
But is that a bug in Twisted that we should report, or does the fix need to happen in our code or code we use (e.g. |
It's a bug in our code as we set |
I see. When I was looking at the code to check for this issue, I became convinced that our use of skipIf in https://github.com/scrapy/scrapy/blob/master/tests/test_pipeline_images.py#L187 was one of the cases where the issue was triggered. But it’s not, it’s the use of skip in other parts of the file as a string what’s triggering it. OK, so it should be relatively easy to fix. |
See e.g. https://github.com/scrapy/scrapy/pull/5019/checks?check_run_id=2012658916
This should be related to the skip attribute, though I'm not sure why did it start happening now.
The text was updated successfully, but these errors were encountered: