Scrapy, a fast high-level web crawling & scraping framework for Python.
Use ignore_errors option from rmtree
Daniel Graña38608bc24951
diff --git a/tests/test_feedexport.py b/tests/test_feedexport.pyindex 76452d450..e46c8c14e 100644--- a/tests/test_feedexport.py+++ b/tests/test_feedexport.py@@ -244,13 +244,7 @@ class FeedExportTest(unittest.TestCase):content = f.read()finally:- # FIXME: Windows fails to remove the file because FeedExporter- # keeps a reference to the temporal file even after- # the spider finished.- try:- shutil.rmtree(tmpdir)- except OSError:- pass+ shutil.rmtree(tmpdir, ignore_errors=True)defer.returnValue(content)