Skip to content
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

test_complete_expanduser fails when home contains dot files only #2022

Open
mtelka opened this issue Aug 20, 2024 · 1 comment
Open

test_complete_expanduser fails when home contains dot files only #2022

mtelka opened this issue Aug 20, 2024 · 1 comment

Comments

@mtelka
Copy link

mtelka commented Aug 20, 2024

When the home directory contains only files starting with dot then the test_complete_expanduser fails like this:

___________________________ test_complete_expanduser ___________________________

Script = functools.partial(<class 'jedi.api.Script'>, environment=<SameEnvironment: 3.9.19 in /usr>)

    def test_complete_expanduser(Script):
        possibilities = os.scandir(expanduser('~'))
        non_dots = [p for p in possibilities if not p.name.startswith('.') and len(p.name) > 1]
>       item = non_dots[0]
E       IndexError: list index out of range

test/test_api/test_completion.py:93: IndexError
@davidhalter
Copy link
Owner

We should probably rewrite the test then. Feel free to create a PR.

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

No branches or pull requests

2 participants