-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
_________________________ StaticCodeTests.test_pylint __________________________
self = <tests.test_code.StaticCodeTests testMethod=test_pylint>
@unittest.skipUnless(importlib.util.find_spec("pylint"), "pylint not available, skipping")
def test_pylint(self):
> subprocess.check_call([sys.executable, "-m", "pylint", *glob.glob("dbusmock/*.py")])
tests/test_code.py:27:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['/usr/bin/python3.9', '-m', 'pylint', 'dbusmock/__init__.py', 'dbusmock/_version.py', 'dbusmock/mockobject.py', ...],)
kwargs = {}, retcode = 16
cmd = ['/usr/bin/python3.9', '-m', 'pylint', 'dbusmock/__init__.py', 'dbusmock/_version.py', 'dbusmock/mockobject.py', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['/usr/bin/python3.9', '-m', 'pylint', 'dbusmock/__init__.py', 'dbusmock/_version.py', 'dbusmock/mockobject.py', 'dbusmock/__main__.py', 'dbusmock/testcase.py', 'dbusmock/pytest_fixtures.py']' returned non-zero exit status 16.
/usr/lib/python3.9/subprocess.py:373: CalledProcessError
----------------------------- Captured stdout call -----------------------------
************* Module dbusmock._version
dbusmock/_version.py:1:0: C0114: Missing module docstring (missing-module-docstring)
-----------------------------------
Your code has been rated at 9.99/10
Metadata
Metadata
Assignees
Labels
No labels