|
1 | 1 | import collections
|
2 | 2 | import operator
|
| 3 | +import sys |
3 | 4 |
|
4 | 5 | import pytest
|
5 | 6 |
|
@@ -163,12 +164,24 @@ def test_from_dtype(self, data):
|
163 | 164 | @pytest.mark.xfail(reason="RecursionError, GH-33900")
|
164 | 165 | def test_series_constructor_no_data_with_index(self, dtype, na_value):
|
165 | 166 | # RecursionError: maximum recursion depth exceeded in comparison
|
166 |
| - super().test_series_constructor_no_data_with_index(dtype, na_value) |
| 167 | + rec_limit = sys.getrecursionlimit() |
| 168 | + try: |
| 169 | + # Limit to avoid stack overflow on Windows CI |
| 170 | + sys.setrecursionlimit(100) |
| 171 | + super().test_series_constructor_no_data_with_index(dtype, na_value) |
| 172 | + finally: |
| 173 | + sys.setrecursionlimit(rec_limit) |
167 | 174 |
|
168 | 175 | @pytest.mark.xfail(reason="RecursionError, GH-33900")
|
169 | 176 | def test_series_constructor_scalar_na_with_index(self, dtype, na_value):
|
170 | 177 | # RecursionError: maximum recursion depth exceeded in comparison
|
171 |
| - super().test_series_constructor_scalar_na_with_index(dtype, na_value) |
| 178 | + rec_limit = sys.getrecursionlimit() |
| 179 | + try: |
| 180 | + # Limit to avoid stack overflow on Windows CI |
| 181 | + sys.setrecursionlimit(100) |
| 182 | + super().test_series_constructor_scalar_na_with_index(dtype, na_value) |
| 183 | + finally: |
| 184 | + sys.setrecursionlimit(rec_limit) |
172 | 185 |
|
173 | 186 | @pytest.mark.xfail(reason="collection as scalar, GH-33901")
|
174 | 187 | def test_series_constructor_scalar_with_index(self, data, dtype):
|
|
0 commit comments