Skip to content

Commit cf7478f

Browse files
authored
TST: #1451 propagate upstream fixes (#1516)
fix: propagate pandas-dev/pandas#61368 pandas-dev/pandas#63186
1 parent 1843952 commit cf7478f

File tree

5 files changed

+0
-37
lines changed

5 files changed

+0
-37
lines changed

tests/series/test_series.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from pathlib import Path
1515
import platform
1616
import re
17-
import sys
1817
from typing import (
1918
TYPE_CHECKING,
2019
Any,
@@ -3214,9 +3213,6 @@ def test_rank() -> None:
32143213
)
32153214

32163215

3217-
@pytest.mark.xfail(
3218-
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
3219-
)
32203216
def test_series_setitem_multiindex() -> None:
32213217
# GH 767
32223218
df = (

tests/test_api_typing.py

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

3-
import sys
43
from typing import TypeAlias
54

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

207206

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

tests/test_frame.py

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

392392

393-
@pytest.mark.xfail(
394-
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
395-
)
396393
def test_assign() -> None:
397394
df = pd.DataFrame({"a": [1, 2, 3], 1: [4, 5, 6]})
398395

@@ -2864,9 +2861,6 @@ def test_indexslice_setitem() -> None:
28642861
df.loc[pd.IndexSlice[pd.Index([2, 3]), :], "z"] = 99
28652862

28662863

2867-
@pytest.mark.xfail(
2868-
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
2869-
)
28702864
def test_indexslice_getitem() -> None:
28712865
# GH 300
28722866
df = (
@@ -4506,9 +4500,6 @@ def test_getitem_dict_keys() -> None:
45064500
check(assert_type(df[some_columns.keys()], pd.DataFrame), pd.DataFrame)
45074501

45084502

4509-
@pytest.mark.xfail(
4510-
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
4511-
)
45124503
def test_frame_setitem_na() -> None:
45134504
# GH 743
45144505
df = pd.DataFrame(
@@ -4639,9 +4630,6 @@ def _constructor(self) -> type[MyClass]:
46394630
check(assert_type(df[["a", "b"]], MyClass), MyClass)
46404631

46414632

4642-
@pytest.mark.xfail(
4643-
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
4644-
)
46454633
def test_hashable_args() -> None:
46464634
# GH 1104
46474635
df = pd.DataFrame([["abc"]], columns=["test"], index=["ind"])

tests/test_io.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import pathlib
77
from pathlib import Path
88
import sqlite3
9-
import sys
109
from typing import (
1110
TYPE_CHECKING,
1211
Any,
@@ -175,18 +174,12 @@ def test_to_pickle_series() -> None:
175174
check(assert_type(read_pickle(path), Any), Series)
176175

177176

178-
@pytest.mark.xfail(
179-
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
180-
)
181177
def test_read_stata_df() -> None:
182178
with ensure_clean() as path:
183179
DF.to_stata(path)
184180
check(assert_type(read_stata(path), pd.DataFrame), pd.DataFrame)
185181

186182

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

tests/test_pandas.py

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

33
import datetime as dt
44
import random
5-
import sys
65
from typing import (
76
TYPE_CHECKING,
87
Any,
@@ -795,9 +794,6 @@ def test_to_numeric_array_series() -> None:
795794
)
796795

797796

798-
@pytest.mark.xfail(
799-
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
800-
)
801797
def test_wide_to_long() -> None:
802798
df = pd.DataFrame(
803799
{
@@ -1141,9 +1137,6 @@ def test_qcut() -> None:
11411137
check(assert_type(j1, np_1darray_float), np_1darray, np.floating)
11421138

11431139

1144-
@pytest.mark.xfail(
1145-
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
1146-
)
11471140
def test_merge() -> None:
11481141
ls = pd.Series([1, 2, 3, 4], index=[1, 2, 3, 4], name="left")
11491142
rs = pd.Series([3, 4, 5, 6], index=[3, 4, 5, 6], name="right")
@@ -1306,9 +1299,6 @@ def test_merge() -> None:
13061299
)
13071300

13081301

1309-
@pytest.mark.xfail(
1310-
sys.version_info >= (3, 14), reason="sys.getrefcount pandas-dev/pandas#61368"
1311-
)
13121302
def test_merge_ordered() -> None:
13131303
ls = pd.Series([1, 2, 3, 4], index=[1, 2, 3, 4], name="left")
13141304
rs = pd.Series([3, 4, 5, 6], index=[3, 4, 5, 6], name="right")

0 commit comments

Comments
 (0)