58
58
LRUStoreCacheV3 ,
59
59
)
60
60
from 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
62
62
63
63
64
64
_VERSIONS = (2 , 3 ) if v3_api_available else (2 ,)
@@ -534,6 +534,7 @@ def test_create_errors(self):
534
534
535
535
g .store .close ()
536
536
537
+ @pytest .mark .skipif (is_wasm (), reason = "No fcntl support in WASM/Pyodide" )
537
538
def test_create_overwrite (self ):
538
539
try :
539
540
for method_name in "create_dataset" , "create" , "empty" , "zeros" , "ones" :
@@ -558,6 +559,7 @@ def test_create_overwrite(self):
558
559
except NotImplementedError :
559
560
pass
560
561
562
+ @pytest .mark .skipif (is_wasm (), reason = "No fcntl support in WASM/Pyodide" )
561
563
def test_getitem_contains_iterators (self ):
562
564
# setup
563
565
g1 = self .create_group ()
@@ -826,6 +828,7 @@ def visitor1(val, *args):
826
828
g1 .store .close ()
827
829
828
830
# 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" )
829
832
def test_double_counting_group_v3 (self ):
830
833
root_group = self .create_group ()
831
834
group_names = ["foo" , "foo-" , "foo_" ]
@@ -849,6 +852,7 @@ def test_empty_getitem_contains_iterators(self):
849
852
850
853
g .store .close ()
851
854
855
+ @pytest .mark .skipif (is_wasm (), reason = "No fcntl support in WASM/Pyodide" )
852
856
def test_iterators_recurse (self ):
853
857
# setup
854
858
g1 = self .create_group ()
@@ -875,6 +879,7 @@ def test_iterators_recurse(self):
875
879
876
880
g1 .store .close ()
877
881
882
+ @pytest .mark .skipif (is_wasm (), reason = "No fcntl support in WASM/Pyodide" )
878
883
def test_getattr (self ):
879
884
# setup
880
885
g1 = self .create_group ()
@@ -906,6 +911,7 @@ def test_setitem(self):
906
911
pass
907
912
g .store .close ()
908
913
914
+ @pytest .mark .skipif (is_wasm (), reason = "No fcntl support in WASM/Pyodide" )
909
915
def test_delitem (self ):
910
916
g = self .create_group ()
911
917
g .create_group ("foo" )
@@ -1178,6 +1184,7 @@ def create_group(
1178
1184
)
1179
1185
return g
1180
1186
1187
+ @pytest .mark .skipif (is_wasm (), reason = "No fcntl support in WASM/Pyodide" )
1181
1188
def test_group_init_1 (self ):
1182
1189
store , chunk_store = self .create_store ()
1183
1190
g = self .create_group (store , chunk_store = chunk_store )
0 commit comments