Skip to content

Commit f36f22c

Browse files
mroeschkeyehoshuadimarsky
authored andcommitted
CI/TST: Lower recurison limit for test_json:test_series_constructor_scalar_with_index on Windows (pandas-dev#47049)
1 parent 4be9f52 commit f36f22c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas/tests/extension/json/test_json.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,13 @@ def test_series_constructor_scalar_na_with_index(self, dtype, na_value):
186186
@pytest.mark.xfail(reason="collection as scalar, GH-33901")
187187
def test_series_constructor_scalar_with_index(self, data, dtype):
188188
# TypeError: All values must be of type <class 'collections.abc.Mapping'>
189-
super().test_series_constructor_scalar_with_index(data, dtype)
189+
rec_limit = sys.getrecursionlimit()
190+
try:
191+
# Limit to avoid stack overflow on Windows CI
192+
sys.setrecursionlimit(100)
193+
super().test_series_constructor_scalar_with_index(data, dtype)
194+
finally:
195+
sys.setrecursionlimit(rec_limit)
190196

191197

192198
class TestReshaping(BaseJSON, base.BaseReshapingTests):

0 commit comments

Comments
 (0)