Skip to content
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

TST exclude lxml==4.2.2 from tests #3308

merged 2 commits into from
Jun 28, 2018

TST exclude lxml==4.2.2 from tests #3308

merged 2 commits into from
Jun 28, 2018


Copy link

@kmike kmike commented Jun 26, 2018

This PR is an example of Travis-driven development, as I can't reproduce an issue locally on OS X.

  1. forcing image to loading before temp file is gone - not a fix.
  2. reverting back to BytesIO, as a Pillow issue seems to be solved (see [MRG] PY3: use six.BytesIO and six.moves.cStringIO #803 (comment) for motivation for moving to TemporaryFile) - not a fix, though probably it makes the code cleaner.

TODO: fix it. It seems the issue is related to PNG codec, as JPEG images work.

Copy link

codecov bot commented Jun 26, 2018

Codecov Report

Merging #3308 into master will increase coverage by 3.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3308      +/-   ##
+ Coverage   78.72%   81.74%   +3.01%     
  Files         228      228              
  Lines        9605     9605              
  Branches     1337     1337              
+ Hits         7562     7852     +290     
+ Misses       1773     1487     -286     
+ Partials      270      266       -4
Impacted Files Coverage Δ
scrapy/core/ 86.39% <0%> (+1.36%) ⬆️
scrapy/pipelines/ 67.51% <0%> (+1.45%) ⬆️
scrapy/http/ 98.43% <0%> (+1.56%) ⬆️
scrapy/core/downloader/handlers/ 92.5% <0%> (+1.87%) ⬆️
scrapy/utils/ 73.33% <0%> (+6.66%) ⬆️
scrapy/core/downloader/ 90% <0%> (+17.5%) ⬆️
scrapy/core/downloader/handlers/ 95.16% <0%> (+22.58%) ⬆️
scrapy/downloadermiddlewares/ 93.05% <0%> (+66.66%) ⬆️
scrapy/extensions/ 94.82% <0%> (+71.72%) ⬆️

@kmike kmike changed the title TST trying to fix build error [wip] TST trying to fix build error Jun 26, 2018
Copy link

I have met this problem these days, and I have several PRs and their testings to wait to pass.

But sorry I am not familiar with the image related libraries, could not provide any help.

Hope this issue could be fixed soon.

Copy link
Member Author

kmike commented Jun 27, 2018

@grammy-jiang this is actually caused by lxml (see python-pillow/Pillow#3208); lxml reverted the offending commit in a new release (lxml/lxml#265). So the fix would be to exclude bad lxml version, I'll do it in this PR.

@kmike kmike changed the title [wip] TST trying to fix build error TST exclude lxml==4.2.2 from tests Jun 27, 2018
@dangra dangra merged commit 64f48ef into master Jun 28, 2018
@dangra dangra deleted the fix-build branch June 28, 2018 02:42
@kmike kmike added this to the v1.6 milestone Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

3 participants