Scrapy, a fast high-level web crawling & scraping framework for Python.
Twisted pre 10.2 (lucid) can not setup the required ftp server for tests
Daniel Graña66aa1331fced
diff --git a/scrapy/tests/test_downloader_handlers.py b/scrapy/tests/test_downloader_handlers.pyindex 857cd3c9b..c71bfbcb8 100644--- a/scrapy/tests/test_downloader_handlers.py+++ b/scrapy/tests/test_downloader_handlers.py@@ -11,9 +11,10 @@ from twisted.web.test.test_webclient import ForeverTakingResource, \PayloadResource, BrokenDownloadResourcefrom twisted.protocols.ftp import FTPRealm, FTPFactoryfrom twisted.cred import portal, checkers, credentials-from twisted.protocols.ftp import FTPClient, ConnectionLost+from twisted.protocols.ftp import FTPClient, ConnectionLostfrom w3lib.url import path_to_file_uri+from scrapy import twisted_versionfrom scrapy.core.downloader.handlers.file import FileDownloadHandlerfrom scrapy.core.downloader.handlers.http import HTTPDownloadHandler, HttpDownloadHandlerfrom scrapy.core.downloader.handlers.http10 import HTTP10DownloadHandler@@ -333,10 +334,13 @@ class S3TestCase(unittest.TestCase):'AWS 0PN5J17HBGZHT7JJ3X82:C0FlOtU8Ylb9KDTpZqYkZPX91iI=')class FTPTestCase(unittest.TestCase):-+username = "scrapy"password = "passwd"+ if twisted_version < (10, 2, 0):+ skip = "Twisted pre 10.2.0 doesn't allow to set home path other than /home"+def setUp(self):# setup dirs and test fileself.directory = self.mktemp()