diff --git a/pandas/tests/io/json/test_compression.py b/pandas/tests/io/json/test_compression.py index 8c69ffedf1df4..febeb4d690562 100644 --- a/pandas/tests/io/json/test_compression.py +++ b/pandas/tests/io/json/test_compression.py @@ -7,8 +7,6 @@ import pandas as pd import pandas._testing as tm -pytestmark = td.skip_array_manager_not_yet_implemented - def test_compression_roundtrip(compression): df = pd.DataFrame( diff --git a/pandas/tests/io/json/test_deprecated_kwargs.py b/pandas/tests/io/json/test_deprecated_kwargs.py index 7367aaefb1c1e..79245bc9d34a8 100644 --- a/pandas/tests/io/json/test_deprecated_kwargs.py +++ b/pandas/tests/io/json/test_deprecated_kwargs.py @@ -2,15 +2,11 @@ Tests for the deprecated keyword arguments for `read_json`. """ -import pandas.util._test_decorators as td - import pandas as pd import pandas._testing as tm from pandas.io.json import read_json -pytestmark = td.skip_array_manager_not_yet_implemented - def test_deprecated_kwargs(): df = pd.DataFrame({"A": [2, 4, 6], "B": [3, 6, 9]}, index=[0, 1, 2]) diff --git a/pandas/tests/io/json/test_normalize.py b/pandas/tests/io/json/test_normalize.py index c01660ab5febe..a428d8c71a793 100644 --- a/pandas/tests/io/json/test_normalize.py +++ b/pandas/tests/io/json/test_normalize.py @@ -15,8 +15,6 @@ from pandas.io.json._normalize import nested_to_record -pytestmark = td.skip_array_manager_not_yet_implemented - @pytest.fixture def deep_nested(): @@ -153,6 +151,8 @@ def test_simple_records(self): tm.assert_frame_equal(result, expected) + # TODO(ArrayManager) sanitize S/U numpy dtypes to object + @td.skip_array_manager_not_yet_implemented def test_simple_normalize(self, state_data): result = json_normalize(state_data[0], "counties") expected = DataFrame(state_data[0]["counties"]) @@ -372,6 +372,8 @@ def test_meta_parameter_not_modified(self): for val in ["metafoo", "metabar", "foo", "bar"]: assert val in result + # TODO(ArrayManager) sanitize S/U numpy dtypes to object + @td.skip_array_manager_not_yet_implemented def test_record_prefix(self, state_data): result = json_normalize(state_data[0], "counties") expected = DataFrame(state_data[0]["counties"]) diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py index 3bd78d44a0b04..97d44aafef74b 100644 --- a/pandas/tests/io/json/test_pandas.py +++ b/pandas/tests/io/json/test_pandas.py @@ -27,9 +27,6 @@ ) import pandas._testing as tm -pytestmark = td.skip_array_manager_not_yet_implemented - - _seriesd = tm.getSeriesData() _frame = DataFrame(_seriesd) @@ -318,7 +315,13 @@ def test_roundtrip_mixed(self, request, orient, convert_axes, numpy): '{"columns":["A","B"],' '"index":["2","3"],' '"data":[[1.0,"1"],[2.0,"2"],[null,"3"]]}', - r"Shape of passed values is \(3, 2\), indices imply \(2, 2\)", + "|".join( + [ + r"Shape of passed values is \(3, 2\), indices imply \(2, 2\)", + "Passed arrays should have the same length as the rows Index: " + "3 vs 2 rows", + ] + ), "split", ), # too many columns @@ -854,6 +857,8 @@ def test_convert_dates_infer(self, infer_word): result = read_json(dumps(data))[["id", infer_word]] tm.assert_frame_equal(result, expected) + # TODO(ArrayManager) JSON + @td.skip_array_manager_not_yet_implemented @pytest.mark.parametrize( "date,date_unit", [ diff --git a/pandas/tests/io/json/test_readlines.py b/pandas/tests/io/json/test_readlines.py index 711addb1ac237..6731c481f8935 100644 --- a/pandas/tests/io/json/test_readlines.py +++ b/pandas/tests/io/json/test_readlines.py @@ -3,8 +3,6 @@ import pytest -import pandas.util._test_decorators as td - import pandas as pd from pandas import ( DataFrame, @@ -14,8 +12,6 @@ from pandas.io.json._json import JsonReader -pytestmark = td.skip_array_manager_not_yet_implemented - @pytest.fixture def lines_json_df(): diff --git a/pandas/tests/io/json/test_ujson.py b/pandas/tests/io/json/test_ujson.py index c0337d1ad3ffe..a44d47470eb5e 100644 --- a/pandas/tests/io/json/test_ujson.py +++ b/pandas/tests/io/json/test_ujson.py @@ -18,7 +18,6 @@ IS64, is_platform_windows, ) -import pandas.util._test_decorators as td from pandas import ( DataFrame, @@ -32,8 +31,6 @@ ) import pandas._testing as tm -pytestmark = td.skip_array_manager_not_yet_implemented - def _clean_dict(d): """