Skip to content

Commit 67ca191

Browse files
committed
1 parent 31a5eee commit 67ca191

File tree

5 files changed

+36
-0
lines changed

5 files changed

+36
-0
lines changed

tests/series/test_series.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from pathlib import Path
1414
import platform
1515
import re
16+
import sys
1617
from typing import (
1718
TYPE_CHECKING,
1819
Any,
@@ -3196,6 +3197,9 @@ def test_rank() -> None:
31963197
)
31973198

31983199

3200+
@pytest.mark.xfail(
3201+
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
3202+
)
31993203
def test_series_setitem_multiindex() -> None:
32003204
# GH 767
32013205
df = (

tests/test_api_typing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Test module for classes in pandas.api.typing."""
22

3+
import sys
34
from typing import TypeAlias
45

56
import numpy as np
@@ -204,6 +205,9 @@ def f1(gb: Window) -> None:
204205
f1(ser.rolling(2, win_type="gaussian"))
205206

206207

208+
@pytest.mark.xfail(
209+
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
210+
)
207211
def test_statereader() -> None:
208212
df = pd.DataFrame([[1, 2], [3, 4]], columns=["col_1", "col_2"])
209213
time_stamp = pd.Timestamp(2000, 2, 29, 14, 21)

tests/test_frame.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ def test_types_assign() -> None:
381381
check(assert_type(df.assign(a=[], b=()), pd.DataFrame), pd.DataFrame)
382382

383383

384+
@pytest.mark.xfail(
385+
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
386+
)
384387
def test_assign() -> None:
385388
df = pd.DataFrame({"a": [1, 2, 3], 1: [4, 5, 6]})
386389

@@ -2833,6 +2836,9 @@ def test_indexslice_setitem() -> None:
28332836
df.loc[pd.IndexSlice[pd.Index([2, 3]), :], "z"] = 99
28342837

28352838

2839+
@pytest.mark.xfail(
2840+
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
2841+
)
28362842
def test_indexslice_getitem() -> None:
28372843
# GH 300
28382844
df = (
@@ -4426,6 +4432,9 @@ def test_getitem_dict_keys() -> None:
44264432
check(assert_type(df[some_columns.keys()], pd.DataFrame), pd.DataFrame)
44274433

44284434

4435+
@pytest.mark.xfail(
4436+
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
4437+
)
44294438
def test_frame_setitem_na() -> None:
44304439
# GH 743
44314440
df = pd.DataFrame(
@@ -4556,6 +4565,9 @@ def _constructor(self) -> type[MyClass]:
45564565
check(assert_type(df[["a", "b"]], MyClass), MyClass)
45574566

45584567

4568+
@pytest.mark.xfail(
4569+
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
4570+
)
45594571
def test_hashable_args() -> None:
45604572
# GH 1104
45614573
df = pd.DataFrame([["abc"]], columns=["test"], index=["ind"])

tests/test_io.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,18 @@ def test_to_pickle_series() -> None:
175175
check(assert_type(read_pickle(path), Any), Series)
176176

177177

178+
@pytest.mark.xfail(
179+
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
180+
)
178181
def test_read_stata_df() -> None:
179182
with ensure_clean() as path:
180183
DF.to_stata(path)
181184
check(assert_type(read_stata(path), pd.DataFrame), pd.DataFrame)
182185

183186

187+
@pytest.mark.xfail(
188+
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
189+
)
184190
def test_read_stata_iterator() -> None:
185191
with ensure_clean() as path:
186192
str_path = str(path)

tests/test_pandas.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import datetime as dt
44
import random
5+
import sys
56
from typing import (
67
TYPE_CHECKING,
78
Any,
@@ -822,6 +823,9 @@ def test_to_numeric_array_series() -> None:
822823
)
823824

824825

826+
@pytest.mark.xfail(
827+
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
828+
)
825829
def test_wide_to_long() -> None:
826830
df = pd.DataFrame(
827831
{
@@ -1145,6 +1149,9 @@ def test_qcut() -> None:
11451149
check(assert_type(j1, npt.NDArray[np.double]), np.ndarray)
11461150

11471151

1152+
@pytest.mark.xfail(
1153+
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
1154+
)
11481155
def test_merge() -> None:
11491156
ls = pd.Series([1, 2, 3, 4], index=[1, 2, 3, 4], name="left")
11501157
rs = pd.Series([3, 4, 5, 6], index=[3, 4, 5, 6], name="right")
@@ -1307,6 +1314,9 @@ def test_merge() -> None:
13071314
)
13081315

13091316

1317+
@pytest.mark.xfail(
1318+
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
1319+
)
13101320
def test_merge_ordered() -> None:
13111321
ls = pd.Series([1, 2, 3, 4], index=[1, 2, 3, 4], name="left")
13121322
rs = pd.Series([3, 4, 5, 6], index=[3, 4, 5, 6], name="right")

0 commit comments

Comments
 (0)