Merge pull request #3308 from scrapy/fix-build

TST exclude lxml==4.2.2 from tests
This commit is contained in:
Daniel Graña 2018-06-27 23:42:32 -03:00 committed by GitHub
commit 64f48efa26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -1 +1,2 @@
Twisted!=18.4.0
lxml!=4.2.2

View File

@ -1,8 +1,8 @@
import os
import io
import hashlib
import random
import warnings
from tempfile import mkdtemp, TemporaryFile
from tempfile import mkdtemp
from shutil import rmtree
from twisted.trial import unittest
@ -401,8 +401,9 @@ class ImagesPipelineTestCaseCustomSettings(unittest.TestCase):
self.assertEqual(getattr(pipeline_cls, pipe_attr.lower()),
expected_value)
def _create_image(format, *a, **kw):
buf = TemporaryFile()
buf = io.BytesIO()
Image.new(*a, **kw).save(buf, format)
buf.seek(0)
return Image.open(buf)

View File

@ -67,6 +67,7 @@ commands =
[testenv:py34]
basepython = python3.4
deps =
-ctests/constraints.txt
-rrequirements-py3.txt
# Extras
Pillow