Skip to content

Commit 03e7bdf

Browse files
authored
Improve LightningModule hook tests (#7944)
1 parent 3a0ed02 commit 03e7bdf

File tree

2 files changed

+129
-240
lines changed

2 files changed

+129
-240
lines changed

tests/helpers/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def prepare_data(self, download: bool = True):
105105
raise RuntimeError('Dataset not found.')
106106

107107
def _download(self, data_folder: str) -> None:
108-
os.makedirs(data_folder)
108+
os.makedirs(data_folder, exist_ok=True)
109109
for url in self.RESOURCES:
110110
logging.info(f'Downloading {url}')
111111
fpath = os.path.join(data_folder, os.path.basename(url))

0 commit comments

Comments
 (0)