Scrapy, a fast high-level web crawling & scraping framework for Python.
Fixed test broken by previous commit
Pablo Hoffmance884192c978
diff --git a/scrapy/tests/test_downloader_handlers.py b/scrapy/tests/test_downloader_handlers.pyindex 51519cb21..41fdd1fc0 100644--- a/scrapy/tests/test_downloader_handlers.py+++ b/scrapy/tests/test_downloader_handlers.py@@ -15,6 +15,7 @@ from scrapy.core.downloader.handlers.http import HttpRequestHandlerfrom scrapy.core.downloader.handlers.s3 import S3RequestHandlerfrom scrapy.spider import BaseSpiderfrom scrapy.http import Request+from scrapy.utils.url import path_to_file_urifrom scrapy import optional_features@@ -33,7 +34,7 @@ class FileTestCase(unittest.TestCase):self.assertEquals(response.status, 200)self.assertEquals(response.body, '0123456789')- request = Request('file://%s' % self.tmpname + '^')+ request = Request(path_to_file_uri(self.tmpname + '^'))assert request.url.upper().endswith('%5E')return self.download_request(request, BaseSpider('foo')).addCallback(_test)