Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

fix ftp tests on windows

Daniel Grañaa21abac74386
diff --git a/tests/test_downloader_handlers.py b/tests/test_downloader_handlers.py
index fe76989f4..2f8973054 100644
--- a/tests/test_downloader_handlers.py
+++ b/tests/test_downloader_handlers.py
@@ -915,6 +915,7 @@ class BaseFTPTestCase(unittest.TestCase):
def test_ftp_local_filename(self):
f, local_fname = tempfile.mkstemp()
+ local_fname = to_bytes(local_fname)
os.close(f)
meta = {"ftp_local_filename": local_fname}
meta.update(self.req_meta)