Skip to content

Commit bea39d9

Browse files
committed
Unneeded warning checking
1 parent d009b81 commit bea39d9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pandas/tests/indexes/test_common.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import pytest
1414

1515
from pandas.compat import IS64
16-
from pandas.errors import PerformanceWarning
1716

1817
from pandas.core.dtypes.common import (
1918
is_integer_dtype,
@@ -437,12 +436,7 @@ def test_hasnans_isnans(self, index_flat):
437436
@pytest.mark.parametrize("na_position", [None, "middle"])
438437
def test_sort_values_invalid_na_position(index_with_missing, na_position):
439438
with pytest.raises(ValueError, match=f"invalid na_position: {na_position}"):
440-
with tm.maybe_produces_warning(
441-
PerformanceWarning,
442-
getattr(index_with_missing.dtype, "storage", "") == "pyarrow",
443-
check_stacklevel=False,
444-
):
445-
index_with_missing.sort_values(na_position=na_position)
439+
index_with_missing.sort_values(na_position=na_position)
446440

447441

448442
@pytest.mark.parametrize("na_position", ["first", "last"])

0 commit comments

Comments
 (0)