Skip to content

Commit

Permalink
try pytest import skip
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Nov 9, 2024
1 parent fdd89f1 commit a143e14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/hdf5/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,9 +615,9 @@ def test_read_nwb_method_file(self):

read_nwbfile.get_read_io().close()

@pytest.mark.skipif(not pytest.importorskip("fsspec"), reason="fsspec library not available")
def test_read_nwb_method_s3_path(self):

fsspec = pytest.importorskip("fsspec") # This alone will skip if import fails

s3_test_path = "https://dandiarchive.s3.amazonaws.com/blobs/11e/c89/11ec8933-1456-4942-922b-94e5878bb991"
read_nwbfile = NWBHDF5IO.read_nwb(path=s3_test_path)
assert read_nwbfile.identifier == "3f77c586-6139-4777-a05d-f603e90b1330"
Expand Down

0 comments on commit a143e14

Please sign in to comment.