<div>Hi,</div><div><br></div><div>When I use a function or method lever marker, pylint is throwing this error:</div><div><br></div><div><div>$ pylint test_hello.py</div><div>No config file found, using default configuration</div>

<div>************* Module test_hello</div><div>C:  1,0: Missing docstring</div><div>Traceback (most recent call last):</div><div>  File &quot;/home/baiju/pylintve/bin/pylint&quot;, line 4, in &lt;module&gt;</div><div>    lint.Run(sys.argv[1:])</div>

<div>  File &quot;/home/baiju/pylintve/lib/python2.6/site-packages/pylint/lint.py&quot;, line 879, in __init__</div><div>    linter.check(args)</div><div>  File &quot;/home/baiju/pylintve/lib/python2.6/site-packages/pylint/lint.py&quot;, line 502, in check</div>

<div>    self.check_astng_module(astng, walker, rawcheckers)</div><div>  File &quot;/home/baiju/pylintve/lib/python2.6/site-packages/pylint/lint.py&quot;, line 574, in check_astng_module</div><div>    walker.walk(astng)</div>

<div>  File &quot;/home/baiju/pylintve/lib/python2.6/site-packages/pylint/utils.py&quot;, line 528, in walk</div><div>    self.walk(child)</div><div>  File &quot;/home/baiju/pylintve/lib/python2.6/site-packages/pylint/utils.py&quot;, line 525, in walk</div>

<div>    cb(astng)</div><div>  File &quot;/home/baiju/pylintve/lib/python2.6/site-packages/pylint/checkers/base.py&quot;, line 161, in visit_function</div><div>    if not redefined_by_decorator(node):</div><div>  File &quot;/home/baiju/pylintve/lib/python2.6/site-packages/pylint/checkers/base.py&quot;, line 116, in redefined_by_decorator</div>

<div>    <a href="http://decorator.expr.name">decorator.expr.name</a> == <a href="http://node.name">node.name</a>):</div><div>AttributeError: &#39;Getattr&#39; object has no attribute &#39;name&#39;</div></div><div><br></div>

<div><br></div><div>This is the test_hello.py:</div><div><br></div><div><div>import pytest</div><div><br></div><div><br></div><div>@pytest.mark.simple</div><div>def test_simple_hello():</div><div>    import hello</div><div>

    assert hello.say_hello() == &quot;Hello&quot;</div></div><div><br></div><div>I have kept the full traceback with all steps to reproduce this issue here:</div><div><br></div><a href="https://gist.github.com/3091659">https://gist.github.com/3091659</a><div>

<br></div><div>If I use class level markers, pylint is not throwing any error.  So, I am not</div><div>sure whether this is a pytest issue or pylint issue.</div><div><br></div><div>Regards,</div><div>Baiju M</div><div><br>

</div>