mirror of https://github.com/scrapy/scrapy.git
fix ftp tests on windows
This commit is contained in:
parent
fb09148c91
commit
a21abac743
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue