diff --git a/tests/integration/hdf5/test_io.py b/tests/integration/hdf5/test_io.py index b91fb6345..b6c0ef0fb 100644 --- a/tests/integration/hdf5/test_io.py +++ b/tests/integration/hdf5/test_io.py @@ -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"