Skip to content

Commit

Permalink
Update testh5io.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Oct 21, 2023
1 parent 167d7b2 commit 4ecf2dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pynwb/testing/testh5io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down Expand Up @@ -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))

0 comments on commit 4ecf2dc

Please sign in to comment.