4040 pass
4141
4242
43+ pytestmark = pytest .mark .filterwarnings (
44+ "ignore:The Dataframe Interchange Protocol is deprecated." )
45+
46+
4347@pytest .mark .parametrize ("unit" , ['s' , 'ms' , 'us' , 'ns' ])
4448@pytest .mark .parametrize ("tz" , ['' , 'America/New_York' , '+07:30' , '-04:30' ])
4549def test_datetime (unit , tz ):
@@ -103,9 +107,6 @@ def test_offset_of_sliced_array():
103107 # check_index=False, check_names=False)
104108
105109
106- @pytest .mark .filterwarnings (
107- "ignore:The Dataframe Interchange Protocol is deprecated."
108- )
109110@pytest .mark .pandas
110111@pytest .mark .parametrize (
111112 "uint" , [pa .uint8 (), pa .uint16 (), pa .uint32 ()]
@@ -149,9 +150,6 @@ def test_pandas_roundtrip(uint, int, float, np_float_str):
149150 assert table_protocol .column_names () == result_protocol .column_names ()
150151
151152
152- @pytest .mark .filterwarnings (
153- "ignore:The Dataframe Interchange Protocol is deprecated."
154- )
155153@pytest .mark .pandas
156154def test_pandas_roundtrip_string ():
157155 # See https://github.com/pandas-dev/pandas/issues/50554
@@ -181,9 +179,6 @@ def test_pandas_roundtrip_string():
181179 assert table_protocol .column_names () == result_protocol .column_names ()
182180
183181
184- @pytest .mark .filterwarnings (
185- "ignore:The Dataframe Interchange Protocol is deprecated."
186- )
187182@pytest .mark .pandas
188183def test_pandas_roundtrip_large_string ():
189184 # See https://github.com/pandas-dev/pandas/issues/50554
@@ -221,9 +216,6 @@ def test_pandas_roundtrip_large_string():
221216 pandas_from_dataframe (table )
222217
223218
224- @pytest .mark .filterwarnings (
225- "ignore:The Dataframe Interchange Protocol is deprecated."
226- )
227219@pytest .mark .pandas
228220def test_pandas_roundtrip_string_with_missing ():
229221 # See https://github.com/pandas-dev/pandas/issues/50554
@@ -256,9 +248,6 @@ def test_pandas_roundtrip_string_with_missing():
256248 pandas_from_dataframe (table )
257249
258250
259- @pytest .mark .filterwarnings (
260- "ignore:The Dataframe Interchange Protocol is deprecated."
261- )
262251@pytest .mark .pandas
263252def test_pandas_roundtrip_categorical ():
264253 if Version (pd .__version__ ) < Version ("2.0.2" ):
@@ -307,9 +296,6 @@ def test_pandas_roundtrip_categorical():
307296 assert isinstance (desc_cat_result ["categories" ]._col , pa .Array )
308297
309298
310- @pytest .mark .filterwarnings (
311- "ignore:The Dataframe Interchange Protocol is deprecated."
312- )
313299@pytest .mark .pandas
314300@pytest .mark .parametrize ("unit" , ['s' , 'ms' , 'us' , 'ns' ])
315301def test_pandas_roundtrip_datetime (unit ):
@@ -346,9 +332,6 @@ def test_pandas_roundtrip_datetime(unit):
346332 assert expected_protocol .column_names () == result_protocol .column_names ()
347333
348334
349- @pytest .mark .filterwarnings (
350- "ignore:The Dataframe Interchange Protocol is deprecated."
351- )
352335@pytest .mark .pandas
353336@pytest .mark .parametrize (
354337 "np_float_str" , ["float32" , "float64" ]
@@ -374,9 +357,6 @@ def test_pandas_to_pyarrow_with_missing(np_float_str):
374357 assert result .equals (expected )
375358
376359
377- @pytest .mark .filterwarnings (
378- "ignore:The Dataframe Interchange Protocol is deprecated."
379- )
380360@pytest .mark .pandas
381361def test_pandas_to_pyarrow_float16_with_missing ():
382362 if Version (pd .__version__ ) < Version ("1.5.0" ):
@@ -500,9 +480,6 @@ def test_nan_as_null():
500480 table .__dataframe__ (nan_as_null = True )
501481
502482
503- @pytest .mark .filterwarnings (
504- "ignore:The Dataframe Interchange Protocol is deprecated."
505- )
506483@pytest .mark .pandas
507484def test_allow_copy_false ():
508485 if Version (pd .__version__ ) < Version ("1.5.0" ):
@@ -522,9 +499,6 @@ def test_allow_copy_false():
522499 pi .from_dataframe (df , allow_copy = False )
523500
524501
525- @pytest .mark .filterwarnings (
526- "ignore:The Dataframe Interchange Protocol is deprecated."
527- )
528502@pytest .mark .pandas
529503def test_allow_copy_false_bool_categorical ():
530504 if Version (pd .__version__ ) < Version ("1.5.0" ):
0 commit comments