Closed
Description
self = <pandas.tests.indexes.test_base.TestIndex object at 0x7f666b28c990>
ip = <IPython.core.interactiveshell.InteractiveShell object at 0x7f666b28ccd0>
@async_mark()
async def test_tab_complete_warning(self, ip):
# ***/issues/16409
pytest.importorskip("IPython", minversion="6.0.0")
from IPython.core.completer import provisionalcompleter
code = "import pandas as pd; idx = pd.Index([1, 2])"
await ip.run_code(code)
with tm.assert_produces_warning(None):
with provisionalcompleter("ignore"):
> list(ip.Completer.completions("idx.", 4))
pandas/tests/indexes/test_base.py:2418:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <contextlib._GeneratorContextManager object at 0x7f666b2a0a50>
type = None, value = None, traceback = None
def __exit__(self, type, value, traceback):
if type is None:
try:
> next(self.gen)
E AssertionError: Caused unexpected warning(s): [('DeprecationWarning', DeprecationWarning('Deprecated since version 0.16.0. Use get_signatures()[...].params'), '/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/jedi/cache.py', 111)]