File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 13
13
import pytest
14
14
15
15
from pandas .compat import IS64
16
- from pandas .errors import PerformanceWarning
17
16
18
17
from pandas .core .dtypes .common import (
19
18
is_integer_dtype ,
@@ -437,12 +436,7 @@ def test_hasnans_isnans(self, index_flat):
437
436
@pytest .mark .parametrize ("na_position" , [None , "middle" ])
438
437
def test_sort_values_invalid_na_position (index_with_missing , na_position ):
439
438
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 )
446
440
447
441
448
442
@pytest .mark .parametrize ("na_position" , ["first" , "last" ])
You can’t perform that action at this time.
0 commit comments