Skip to content

1.2.4: minor test failures #109

Open

Description

@0-wiz-0

I've just packaged python-lsp-server for pkgsrc. Running the self tests, I see a couple "failed" tests:

FAILED test/plugins/test_flake8_lint.py::test_flake8_unsaved - FileNotFoundError: [Errno 2] No such file or directory: 'python'
FAILED test/plugins/test_flake8_lint.py::test_flake8_lint - FileNotFoundError: [Errno 2] No such file or directory: 'python'
FAILED test/plugins/test_flake8_lint.py::test_flake8_per_file_ignores - FileNotFoundError: [Errno 2] No such file or directory: 'python'
FAILED test/plugins/test_pylint_lint.py::test_pylint - FileNotFoundError: [Errno 2] No such file or directory: 'python'
FAILED test/plugins/test_pylint_lint.py::test_syntax_error_pylint_py3 - FileNotFoundError: [Errno 2] No such file or directory: 'python'
FAILED test/plugins/test_pylint_lint.py::test_lint_free_pylint - AssertionError: assert not [{'code': 'W1514', 'message': '[unspecified-encoding] Using open without explicitly s...
FAILED test/plugins/test_pylint_lint.py::test_per_file_caching - AssertionError: assert not [{'code': 'W1514', 'message': '[unspecified-encoding] Using open without explicitly s...

The first five of these assume a "python" binary, which pkgsrc does not provide by default.
I'm not sure about the last two.

Activity

  1. ccordoba12 commented on Nov 5, 2021

    @ccordoba12
    Member

    Hey @0-wiz-0, thanks for reporting. Tests are passing in our CIs, so if you want to make them pass in your system, please submit a pull request to that effect.

  2. 0-wiz-0 commented on Nov 5, 2021

    @0-wiz-0
    ContributorAuthor

    #111 fixes the first three of the problems.
    The next two are caused by calling 'pylint' but only 'pylint-3.9' is available. I don't have a good portable fix for that.

    For the remaining two, I suggest running the tests in an ASCII environment (C locale), and I guess you'll see the same error there.

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

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