When installing pylint 1.9.4 and astroid 1.6.5 from whl files, I get a lot of test error logs.

This is from astroid package:

Compiling /tmp/pip-QrF_Qx-build/astroid/tests/testdata/python2/data/invalid_encoding.py ...
File "/tmp/pip-QrF_Qx-build/astroid/tests/testdata/python2/data/invalid_encoding.py", line 0
SyntaxError: unknown encoding: lala

Compiling
/tmp/pip-QrF_Qx-build/astroid/tests/testdata/python3/data/invalid_encoding.py
...   File
"/tmp/pip-QrF_Qx-build/astroid/tests/testdata/python3/data/invalid_encoding.py",
line 0 SyntaxError: unknown encoding: lala

And from pylint package:

Compiling
/tmp/pip-JnQOTI-build/pylint/test/functional/abstract_class_instantiated_py3.py
...   File
"/tmp/pip-JnQOTI-build/pylint/test/functional/abstract_class_instantiated_py3.py",
line 14
    class GoodClass(object, metaclass=abc.ABCMeta):
                                     ^ SyntaxError: invalid syntax

Compiling
/tmp/pip-JnQOTI-build/pylint/test/functional/abstract_method_py3.py
...   File
"/tmp/pip-JnQOTI-build/pylint/test/functional/abstract_method_py3.py",
line 35
    class Structure(object, metaclass=abc.ABCMeta):
                                     ^ SyntaxError: invalid syntax

Compiling
/tmp/pip-JnQOTI-build/pylint/test/functional/arguments_differ_py3.py
...   File
"/tmp/pip-JnQOTI-build/pylint/test/functional/arguments_differ_py3.py",
line 4
    def kwonly_1(self, first, *, second, third):
                               ^ SyntaxError: invalid syntax

Compiling
/tmp/pip-JnQOTI-build/pylint/test/functional/async_functions.py ...  
File
"/tmp/pip-JnQOTI-build/pylint/test/functional/async_functions.py",
line 5
    async def next(): # [redefined-builtin]
            ^ SyntaxError: invalid syntax
  • The reason for the "old" versions of the package is that I work with python 2.7 and according to their docs (https://pypi.org/project/pylint/#history), the last pylint version to work with python 2.7 is 1.9.4.

I can't seem to find how to get rid of those. It seems that those logs are just test failure logs, because the package is installed fine - but still, it prints a lot of junk to the installation log.

How can I suppress those?

0 Answers