Skip to content

Commit

Permalink
Improve LightningModule hook tests (#7944)
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca authored Jun 14, 2021
1 parent 3a0ed02 commit 03e7bdf
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 240 deletions.
2 changes: 1 addition & 1 deletion tests/helpers/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def prepare_data(self, download: bool = True):
raise RuntimeError('Dataset not found.')

def _download(self, data_folder: str) -> None:
os.makedirs(data_folder)
os.makedirs(data_folder, exist_ok=True)
for url in self.RESOURCES:
logging.info(f'Downloading {url}')
fpath = os.path.join(data_folder, os.path.basename(url))
Expand Down
Loading

0 comments on commit 03e7bdf

Please sign in to comment.