Skip to content

Commit dd55298

Browse files
committed
fix: include both test in PD_LTE_22 condition
1 parent c41ec61 commit dd55298

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/test_frame.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,13 +2256,6 @@ def test_frame_stack() -> None:
22562256
),
22572257
pd.Series,
22582258
)
2259-
check(
2260-
assert_type(
2261-
df_multi_level_cols2.stack(0, dropna=True, sort=True),
2262-
Union[pd.DataFrame, "pd.Series[Any]"],
2263-
),
2264-
pd.DataFrame,
2265-
)
22662259
if PD_LTE_22:
22672260
check(
22682261
assert_type(
@@ -2271,6 +2264,13 @@ def test_frame_stack() -> None:
22712264
),
22722265
pd.DataFrame,
22732266
)
2267+
check(
2268+
assert_type(
2269+
df_multi_level_cols2.stack(0, dropna=True, sort=True),
2270+
Union[pd.DataFrame, "pd.Series[Any]"],
2271+
),
2272+
pd.DataFrame,
2273+
)
22742274

22752275

22762276
def test_frame_reindex() -> None:

0 commit comments

Comments
 (0)