Skip to content

CI Failing on IPython tab complete test #31342

Closed
@TomAugspurger

Description

@TomAugspurger

https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=26868&view=logs&j=a3a13ea8-7cf0-5bdb-71bb-6ac8830ae35c&t=add65f64-6c25-5783-8fd6-d9aa1b63d9d4

##[error]2 test(s) failed, 61943 test(s) collected.
Skipping uploading of coverage data.

=================================== FAILURES ===================================
______________ TestCategoricalWarnings.test_tab_complete_warning _______________
[gw1] linux -- Python 3.7.6 /home/vsts/miniconda3/envs/pandas-dev/bin/python


self = <contextlib._GeneratorContextManager object at 0x7fec44a81210>
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)]

../../../miniconda3/envs/pandas-dev/lib/python3.7/contextlib.py:119: AssertionError
_____________________ TestIndex.test_tab_complete_warning ______________________
[gw0] linux -- Python 3.7.6 /home/vsts/miniconda3/envs/pandas-dev/bin/python

self = <pandas.tests.indexes.test_base.TestIndex object at 0x7f6d1ff31850>
ip = <IPython.core.interactiveshell.InteractiveShell object at 0x7f6d1ff31b90>

    @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 0x7f6d1ebc7a50>
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)]

../../../miniconda3/envs/pandas-dev/lib/python3.7/contextlib.py:119: AssertionError

taking a look now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions