mirror of https://github.com/scrapy/scrapy.git
skip image pipeline tests if Image module is not available
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%401050
This commit is contained in:
parent
3945c36f30
commit
9c005f8e75
|
|
@ -1,8 +1,13 @@
|
|||
import unittest
|
||||
from scrapy.contrib.pipeline.images import BaseImagesPipeline
|
||||
from twisted.trial import unittest
|
||||
|
||||
class ImagesPipelineTestCase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
try:
|
||||
import Image
|
||||
except ImportError, e:
|
||||
raise unittest.SkipTest(e)
|
||||
|
||||
from scrapy.contrib.pipeline.images import BaseImagesPipeline
|
||||
self.pipeline = BaseImagesPipeline()
|
||||
|
||||
def tearDown(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue