Skip to content

CI : jedi deprecation warnings fails CI #33567

Closed
@charlesdong1991

Description

@charlesdong1991
ip = <IPython.core.interactiveshell.InteractiveShell object at 0x7f10269bd910>

    @async_mark()
    async def test_tab_complete_warning(self, ip):
        # GH 16409
        pytest.importorskip("IPython", minversion="6.0.0")
        from IPython.core.completer import provisionalcompleter
    
        code = "import pandas as pd; df = pd.DataFrame()"
        await ip.run_code(code)
        with tm.assert_produces_warning(None):
            with provisionalcompleter("ignore"):
>               list(ip.Completer.completions("df.", 1))

pandas/tests/frame/test_api.py:534: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <contextlib._GeneratorContextManager object at 0x7f10264bc190>
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('Providing the line is now done in the functions themselves like `Script(...).complete(line, column)`'), '/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/jedi/api/__init__.py', 843), ('DeprecationWarning', DeprecationWarning('Providing the column is now done in the functions themselves like `Script(...).complete(line, column)`'), '/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/jedi/api/__init__.py', 843), ('DeprecationWarning', DeprecationWarning('Deprecated since version 0.16.0. Use Script(...).complete instead.'), '/home/vsts/miniconda3/envs/pandas-dev/lib/python3.7/site-packages/IPython/core/completer.py', 1401)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIContinuous Integration

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions