Skip to content

test_pylint fails with pylint 3.3.8 #246

@mtelka

Description

@mtelka
_________________________ 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions