2
2
import sys
3
3
import pickle
4
4
import shutil
5
+
5
6
from typing import Any , Literal , Optional , Tuple , Union , Sequence
6
7
import unittest
7
8
from itertools import zip_longest
84
85
85
86
# noinspection PyMethodMayBeStatic
86
87
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
+
87
93
88
94
class TestArray :
89
95
version = 2
@@ -94,7 +100,7 @@ class TestArray:
94
100
dimension_separator : Optional [DIMENSION_SEPARATOR ] = None
95
101
cache_metadata = True
96
102
cache_attrs = True
97
- partial_decompress : bool = False
103
+ partial_decompress : bool | None = None
98
104
write_empty_chunks = True
99
105
read_only = False
100
106
storage_transformers : Tuple [Any , ...] = ()
@@ -2481,6 +2487,9 @@ def expected(self):
2481
2487
2482
2488
2483
2489
@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
+ )
2484
2493
class TestArrayWithFSStorePartialRead (TestArray ):
2485
2494
compressor = Blosc (blocksize = 256 )
2486
2495
partial_decompress = True
@@ -2547,6 +2556,9 @@ def expected(self):
2547
2556
2548
2557
2549
2558
@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
+ )
2550
2562
class TestArrayWithFSStoreNestedPartialRead (TestArrayWithFSStore ):
2551
2563
compressor = Blosc ()
2552
2564
dimension_separator = "/"
@@ -3020,6 +3032,9 @@ def expected(self):
3020
3032
3021
3033
@pytest .mark .skipif (have_fsspec is False , reason = "needs fsspec" )
3022
3034
@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
+ )
3023
3038
class TestArrayWithFSStoreV3PartialRead (TestArrayWithFSStoreV3 ):
3024
3039
partial_decompress = True
3025
3040
@@ -3038,6 +3053,9 @@ def expected(self):
3038
3053
@pytest .mark .skipif (have_fsspec is False , reason = "needs fsspec" )
3039
3054
@pytest .mark .skipif (not v3_api_available , reason = "V3 is disabled" )
3040
3055
@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
+ )
3041
3059
class TestArrayWithFSStoreV3PartialReadUncompressedSharded (TestArrayWithFSStoreV3 ):
3042
3060
partial_decompress = True
3043
3061
compressor = None
0 commit comments