Try to fix error at Windows

This commit is contained in:
BroodingKangaroo 2020-07-17 17:48:25 +03:00
parent c4f9250220
commit 86f7ac2f2b
1 changed files with 2 additions and 0 deletions

View File

@ -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()