File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ Documentation Changes
44
44
Bug Fixes
45
45
~~~~~~~~~
46
46
47
+ - tab completion on :class:`Index` in IPython no longer outputs deprecation warnings (:issue:`21125`)
48
+
47
49
Groupby/Resample/Rolling
48
50
^^^^^^^^^^^^^^^^^^^^^^^^
49
51
Original file line number Diff line number Diff line change @@ -2088,6 +2088,17 @@ def test_get_duplicates_deprecated(self):
2088
2088
with tm .assert_produces_warning (FutureWarning ):
2089
2089
index .get_duplicates ()
2090
2090
2091
+ def test_tab_complete_warning (self , ip ):
2092
+ # https://github.com/pandas-dev/pandas/issues/16409
2093
+ pytest .importorskip ('IPython' , minversion = "6.0.0" )
2094
+ from IPython .core .completer import provisionalcompleter
2095
+
2096
+ code = "import pandas as pd; idx = pd.Index([1, 2])"
2097
+ ip .run_code (code )
2098
+ with tm .assert_produces_warning (None ):
2099
+ with provisionalcompleter ('ignore' ):
2100
+ list (ip .Completer .completions ('idx.' , 4 ))
2101
+
2091
2102
2092
2103
class TestMixedIntIndex (Base ):
2093
2104
# Mostly the tests from common.py for which the results differ
You can’t perform that action at this time.
0 commit comments