mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-24 05:04:25 +00:00
Use ignore_errors option from rmtree
This commit is contained in:
parent
4eaf8690b1
commit
38608bc249
@ -244,13 +244,7 @@ class FeedExportTest(unittest.TestCase):
|
|||||||
content = f.read()
|
content = f.read()
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
# FIXME: Windows fails to remove the file because FeedExporter
|
shutil.rmtree(tmpdir, ignore_errors=True)
|
||||||
# keeps a reference to the temporal file even after
|
|
||||||
# the spider finished.
|
|
||||||
try:
|
|
||||||
shutil.rmtree(tmpdir)
|
|
||||||
except OSError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
defer.returnValue(content)
|
defer.returnValue(content)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user