From b0cfb481dff6ebd01b0b425aba8085a904aca25a Mon Sep 17 00:00:00 2001 From: Farid Yagubbayli Date: Thu, 1 Feb 2024 20:31:41 +0100 Subject: [PATCH] Update h5_summary.py --- tests/h5_summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/h5_summary.py b/tests/h5_summary.py index 90ee6f9e..18b7b629 100644 --- a/tests/h5_summary.py +++ b/tests/h5_summary.py @@ -55,7 +55,7 @@ def extract_summary(name, obj): def save(self, name: str): path = self._get_json_filepath(name) - # assert not os.path.exists(path), 'File already exists, would not overwrite!' + assert not os.path.exists(path), 'File already exists, would not overwrite!' with open(path, "w") as write_file: json.dump(self.summary, write_file, indent=4)