diff --git a/pandas/tests/extension/json/test_json.py b/pandas/tests/extension/json/test_json.py index f1e8e82d23691..f3129a89124f4 100644 --- a/pandas/tests/extension/json/test_json.py +++ b/pandas/tests/extension/json/test_json.py @@ -186,7 +186,13 @@ def test_series_constructor_scalar_na_with_index(self, dtype, na_value): @pytest.mark.xfail(reason="collection as scalar, GH-33901") def test_series_constructor_scalar_with_index(self, data, dtype): # TypeError: All values must be of type - super().test_series_constructor_scalar_with_index(data, dtype) + rec_limit = sys.getrecursionlimit() + try: + # Limit to avoid stack overflow on Windows CI + sys.setrecursionlimit(100) + super().test_series_constructor_scalar_with_index(data, dtype) + finally: + sys.setrecursionlimit(rec_limit) class TestReshaping(BaseJSON, base.BaseReshapingTests):