pylint 1.9.4安装会打印测试错误日志

时间:2019-05-12 11:28:43

标签: python logging package pylint python-wheel

whl文件安装pylint 1.9.4astroid 1.6.5时,我收到很多测试错误日志。

这是从 astroid 软件包中获得的:

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

并通过 pylint 软件包:

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

我似乎找不到解决方法。这些日志似乎只是测试失败日志,因为该软件包安装得很好-但仍然会在安装日志中打印很多垃圾。

我该如何压制那些?

0 个答案:

没有答案