diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py index 3b0fae537a6e5..0faa784634fd2 100644 --- a/pandas/tests/indexing/test_loc.py +++ b/pandas/tests/indexing/test_loc.py @@ -1512,6 +1512,16 @@ def test_series_loc_getitem_label_list_missing_values(): s.loc[key] +def test_series_getitem_label_list_missing_integer_values(): + # GH: 25927 + s = Series( + index=np.array([9730701000001104, 10049011000001109]), + data=np.array([999000011000001104, 999000011000001104]), + ) + with pytest.raises(KeyError, match="with any missing labels"): + s.loc[np.array([9730701000001104, 10047311000001102])] + + @pytest.mark.parametrize( "columns, column_key, expected_columns, check_column_type", [