File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 30
30
read_json ,
31
31
)
32
32
import pandas ._testing as tm
33
+ from pandas .util .version import Version
33
34
34
35
from pandas .io .json import ujson_dumps
35
36
@@ -2187,12 +2188,10 @@ def test_read_json_dtype_backend(
2187
2188
tm .assert_frame_equal (result , expected , check_column_type = False )
2188
2189
2189
2190
@td .skip_if_no ("pyarrow" )
2190
- @pytest .mark .filterwarnings ("ignore::DeprecationWarning" )
2191
2191
def test_read_json_pyarrow_with_dtype (self , request ):
2192
2192
pa = pytest .importorskip ("pyarrow" )
2193
- version_tuple = tuple (map (int , pa .__version__ .split ("." )))
2194
2193
2195
- if version_tuple [ 0 ] < 16 :
2194
+ if Version ( pa . __version__ ) < Version ( "16.0" ) :
2196
2195
request .applymarker (
2197
2196
pytest .mark .filterwarnings ("ignore::DeprecationWarning" )
2198
2197
)
You can’t perform that action at this time.
0 commit comments