@@ -645,6 +645,7 @@ def test_unknown_protocol():
645645
646646@_http_server_skip
647647@pytest .mark .skipif (blosc2 .IS_WASM , reason = "no listening sockets on wasm32" )
648+ @pytest .mark .network
648649def test_http_url_is_read_through_fsspec (tmp_path ):
649650 # A frame behind a plain web server -- no Caterva2 there to ask anything of --
650651 # is a frame like any other: fsspec reads it in ranges wherever the server
@@ -673,6 +674,7 @@ def test_http_url_is_read_through_fsspec(tmp_path):
673674
674675@_http_server_skip
675676@pytest .mark .skipif (blosc2 .IS_WASM , reason = "no listening sockets on wasm32" )
677+ @pytest .mark .network
676678def test_http_shared_b2nd_cache_across_processes (tmp_path ):
677679 pytest .importorskip ("aiohttp" )
678680 blosc2 .asarray (
@@ -704,6 +706,7 @@ def test_http_shared_b2nd_cache_across_processes(tmp_path):
704706
705707
706708@_http_server_skip
709+ @pytest .mark .network
707710def test_http_lazy_cache_rebuilt_when_remote_changes (tmp_path ):
708711 pytest .importorskip ("aiohttp" )
709712 path = tmp_path / "www"
@@ -726,6 +729,7 @@ def test_http_lazy_cache_rebuilt_when_remote_changes(tmp_path):
726729
727730
728731@_http_server_skip
732+ @pytest .mark .network
729733def test_http_remote_array_checks_identity_without_refetching_cached_data (tmp_path ):
730734 pytest .importorskip ("aiohttp" )
731735 path = tmp_path / "www"
@@ -814,6 +818,7 @@ def do_HEAD(self):
814818 server .server_close ()
815819
816820
821+ @pytest .mark .network
817822def test_http_hdf5_scan_and_warm_slice (tmp_path ):
818823 h5py = pytest .importorskip ("h5py" )
819824 data = np .arange (10_000 , dtype = "int32" )
@@ -830,6 +835,7 @@ def test_http_hdf5_scan_and_warm_slice(tmp_path):
830835
831836
832837@pytest .mark .parametrize ("format" , ["hdf5" , "b2z" ])
838+ @pytest .mark .network
833839def test_http_source_cache_across_processes (tmp_path , format ):
834840 data = np .zeros (100 , dtype = [("id" , "i4" ), ("value" , "f8" )])
835841 data ["id" ] = np .arange (len (data ))
@@ -881,6 +887,7 @@ def test_http_source_cache_across_processes(tmp_path, format):
881887 assert head_requests == []
882888
883889
890+ @pytest .mark .network
884891def test_http_large_hdf5_keeps_range_reads (tmp_path ):
885892 h5py = pytest .importorskip ("h5py" )
886893 path = tmp_path / "large-seekable.h5"
@@ -893,6 +900,7 @@ def test_http_large_hdf5_keeps_range_reads(tmp_path):
893900 assert all (request is not None for request in requests )
894901
895902
903+ @pytest .mark .network
896904def test_http_hdf5_source_close_closes_session (tmp_path ):
897905 h5py = pytest .importorskip ("h5py" )
898906 data = np .arange (10_000 , dtype = "int32" )
@@ -923,6 +931,7 @@ def test_http_hdf5_source_close_closes_session(tmp_path):
923931 sparse .get_chunk (0 )
924932
925933
934+ @pytest .mark .network
926935def test_http_hdf5_scan_closes_owned_session (tmp_path , monkeypatch ):
927936 h5py = pytest .importorskip ("h5py" )
928937 import blosc2 .hdf5_source as hdf5_source
@@ -947,6 +956,7 @@ def tracking(urlpath, storage_options=None, filesystem=None):
947956 assert created [0 ]._session .closed
948957
949958
959+ @pytest .mark .network
950960def test_http_hdf5_failed_init_closes_owned_session (tmp_path , monkeypatch ):
951961 h5py = pytest .importorskip ("h5py" )
952962 import blosc2 .hdf5_source as hdf5_source
@@ -978,6 +988,7 @@ def tracking(urlpath, storage_options=None, filesystem=None):
978988 assert created [1 ]._session .closed
979989
980990
991+ @pytest .mark .network
981992def test_http_hdf5_source_finalizer_closes_session (tmp_path ):
982993 h5py = pytest .importorskip ("h5py" )
983994 data = np .arange (10_000 , dtype = "int32" )
@@ -993,6 +1004,7 @@ def test_http_hdf5_source_finalizer_closes_session(tmp_path):
9931004 assert session .closed
9941005
9951006
1007+ @pytest .mark .network
9961008def test_http_store_disk_reopen_and_transport_close (tmp_path ):
9971009 h5py = pytest .importorskip ("h5py" )
9981010 data = np .arange (10_000 , dtype = "int32" )
0 commit comments