diff --git a/src/pynwb/testing/testh5io.py b/src/pynwb/testing/testh5io.py index 6b0bc3ae9..c7b3bfdcc 100644 --- a/src/pynwb/testing/testh5io.py +++ b/src/pynwb/testing/testh5io.py @@ -163,12 +163,12 @@ def getContainer(self, nwbfile): def validate(self): """ Validate the created files """ if os.path.exists(self.filename): - errors = pynwb_validate(paths=[self.filename]) + errors, _ = pynwb_validate(paths=[self.filename]) if errors: raise Exception("\n".join(errors)) if os.path.exists(self.export_filename): - errors = pynwb_validate(paths=[self.export_filename]) + errors, _ = pynwb_validate(paths=[self.export_filename]) if errors: raise Exception("\n".join(errors)) @@ -362,11 +362,11 @@ def roundtripExportContainer(self, cache_spec=True): def validate(self): """Validate the created files.""" if os.path.exists(self.filename): - errors = pynwb_validate(paths=[self.filename]) + errors, _ = pynwb_validate(paths=[self.filename]) if errors: raise Exception("\n".join(errors)) if os.path.exists(self.export_filename): - errors = pynwb_validate(paths=[self.export_filename]) + errors, _ = pynwb_validate(paths=[self.export_filename]) if errors: raise Exception("\n".join(errors))