Skip to content

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

Try to fix error at Windows

BroodingKangaroo86f7ac2f2b5d
diff --git a/tests/test_feedexport.py b/tests/test_feedexport.py
index 129b7fc0b..cc124624d 100644
--- a/tests/test_feedexport.py
+++ b/tests/test_feedexport.py
@@ -1204,6 +1204,8 @@ class BatchDeliveriesTest(FeedExportTestBase):
for path, feed in FEEDS.items():
dir_name = os.path.dirname(path)
+ if not os.path.exists(str(dir_name)):
+ continue
for file in sorted(os.listdir(dir_name)):
with open(os.path.join(dir_name, file), 'rb') as f:
data = f.read()