22import sys
33import pickle
44import shutil
5+
56from typing import Any , Literal , Optional , Tuple , Union , Sequence
67import unittest
78from itertools import zip_longest
8485
8586# noinspection PyMethodMayBeStatic
8687
88+ pytestmark = [
89+ pytest .mark .filterwarnings ("ignore:Call to deprecated function .* \_cbuffer\_sizes.*" ),
90+ pytest .mark .filterwarnings ("ignore:Call to deprecated function .* \_cbuffer\_metainfo.*" ),
91+ ]
92+
8793
8894class TestArray :
8995 version = 2
@@ -94,7 +100,7 @@ class TestArray:
94100 dimension_separator : Optional [DIMENSION_SEPARATOR ] = None
95101 cache_metadata = True
96102 cache_attrs = True
97- partial_decompress : bool = False
103+ partial_decompress : bool | None = None
98104 write_empty_chunks = True
99105 read_only = False
100106 storage_transformers : Tuple [Any , ...] = ()
@@ -2481,6 +2487,9 @@ def expected(self):
24812487
24822488
24832489@pytest .mark .skipif (have_fsspec is False , reason = "needs fsspec" )
2490+ @pytest .mark .filterwarnings (
2491+ "ignore:.*Support for partial decompression will be removed in a future version.*"
2492+ )
24842493class TestArrayWithFSStorePartialRead (TestArray ):
24852494 compressor = Blosc (blocksize = 256 )
24862495 partial_decompress = True
@@ -2547,6 +2556,9 @@ def expected(self):
25472556
25482557
25492558@pytest .mark .skipif (have_fsspec is False , reason = "needs fsspec" )
2559+ @pytest .mark .filterwarnings (
2560+ "ignore:.*Support for partial decompression will be removed in a future version.*"
2561+ )
25502562class TestArrayWithFSStoreNestedPartialRead (TestArrayWithFSStore ):
25512563 compressor = Blosc ()
25522564 dimension_separator = "/"
@@ -3020,6 +3032,9 @@ def expected(self):
30203032
30213033@pytest .mark .skipif (have_fsspec is False , reason = "needs fsspec" )
30223034@pytest .mark .skipif (not v3_api_available , reason = "V3 is disabled" )
3035+ @pytest .mark .filterwarnings (
3036+ "ignore:.*Support for partial decompression will be removed in a future version.*"
3037+ )
30233038class TestArrayWithFSStoreV3PartialRead (TestArrayWithFSStoreV3 ):
30243039 partial_decompress = True
30253040
@@ -3038,6 +3053,9 @@ def expected(self):
30383053@pytest .mark .skipif (have_fsspec is False , reason = "needs fsspec" )
30393054@pytest .mark .skipif (not v3_api_available , reason = "V3 is disabled" )
30403055@pytest .mark .skipif (not v3_sharding_available , reason = "sharding is disabled" )
3056+ @pytest .mark .filterwarnings (
3057+ "ignore:.*Support for partial decompression will be removed in a future version.*"
3058+ )
30413059class TestArrayWithFSStoreV3PartialReadUncompressedSharded (TestArrayWithFSStoreV3 ):
30423060 partial_decompress = True
30433061 compressor = None
0 commit comments