We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db92219 commit 00eb63cCopy full SHA for 00eb63c
pandas/tests/indexes/test_base.py
@@ -2088,6 +2088,17 @@ def test_get_duplicates_deprecated(self):
2088
with tm.assert_produces_warning(FutureWarning):
2089
index.get_duplicates()
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
2102
2103
class TestMixedIntIndex(Base):
2104
# Mostly the tests from common.py for which the results differ
0 commit comments