5858 LRUStoreCacheV3 ,
5959)
6060from zarr .util import InfoReporter , buffer_size
61- from zarr .tests .util import skip_test_env_var , have_fsspec , abs_container , mktemp
61+ from zarr .tests .util import is_wasm , skip_test_env_var , have_fsspec , abs_container , mktemp
6262
6363
6464_VERSIONS = (2 , 3 ) if v3_api_available else (2 ,)
@@ -534,6 +534,7 @@ def test_create_errors(self):
534534
535535 g .store .close ()
536536
537+ @pytest .mark .skipif (is_wasm (), reason = "No fcntl support in WASM/Pyodide" )
537538 def test_create_overwrite (self ):
538539 try :
539540 for method_name in "create_dataset" , "create" , "empty" , "zeros" , "ones" :
@@ -558,6 +559,7 @@ def test_create_overwrite(self):
558559 except NotImplementedError :
559560 pass
560561
562+ @pytest .mark .skipif (is_wasm (), reason = "No fcntl support in WASM/Pyodide" )
561563 def test_getitem_contains_iterators (self ):
562564 # setup
563565 g1 = self .create_group ()
@@ -826,6 +828,7 @@ def visitor1(val, *args):
826828 g1 .store .close ()
827829
828830 # regression test for https://github.com/zarr-developers/zarr-python/issues/1228
831+ @pytest .mark .skipif (is_wasm (), reason = "No fcntl support in WASM/Pyodide" )
829832 def test_double_counting_group_v3 (self ):
830833 root_group = self .create_group ()
831834 group_names = ["foo" , "foo-" , "foo_" ]
@@ -849,6 +852,7 @@ def test_empty_getitem_contains_iterators(self):
849852
850853 g .store .close ()
851854
855+ @pytest .mark .skipif (is_wasm (), reason = "No fcntl support in WASM/Pyodide" )
852856 def test_iterators_recurse (self ):
853857 # setup
854858 g1 = self .create_group ()
@@ -875,6 +879,7 @@ def test_iterators_recurse(self):
875879
876880 g1 .store .close ()
877881
882+ @pytest .mark .skipif (is_wasm (), reason = "No fcntl support in WASM/Pyodide" )
878883 def test_getattr (self ):
879884 # setup
880885 g1 = self .create_group ()
@@ -906,6 +911,7 @@ def test_setitem(self):
906911 pass
907912 g .store .close ()
908913
914+ @pytest .mark .skipif (is_wasm (), reason = "No fcntl support in WASM/Pyodide" )
909915 def test_delitem (self ):
910916 g = self .create_group ()
911917 g .create_group ("foo" )
@@ -1178,6 +1184,7 @@ def create_group(
11781184 )
11791185 return g
11801186
1187+ @pytest .mark .skipif (is_wasm (), reason = "No fcntl support in WASM/Pyodide" )
11811188 def test_group_init_1 (self ):
11821189 store , chunk_store = self .create_store ()
11831190 g = self .create_group (store , chunk_store = chunk_store )
0 commit comments