klen / pylama

Code audit tool for python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

test_eradicate fails with AttributeError: 'NoneType' object has no attribute 'run'

sbraz opened this issue · comments

Hi,
Since eradicate v2.0, tests/test_linters.py::test_eradicate fails with:

    def test_eradicate():
        eradicate = LINTERS.get('eradicate')
>       errors = eradicate.run('', code="\n".join([
            "#import os",
            "# from foo import junk",
            "#a = 3",
            "a = 4",
            "#foo(1, 2, 3)",
        ]))
E       AttributeError: 'NoneType' object has no attribute 'run'

tests/test_linters.py:16: AttributeError

The commit which broke it is PyCQA/eradicate@7ac2216 (merged as PyCQA/eradicate@6ca1b94).


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Thank you for the feedback. The issue has been fixed in the latest version (8.0.4).