Skip to content

CI Failing on IPython tab complete test #31342

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TomAugspurger opened this issue Jan 27, 2020 · 1 comment
Closed

CI Failing on IPython tab complete test #31342

TomAugspurger opened this issue Jan 27, 2020 · 1 comment

Comments

@TomAugspurger
Copy link
Contributor

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.

@TomAugspurger
Copy link
Contributor Author

Ah, fixed by #31323 already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant