'no-member' pylint error in unittests since testtools 1.6.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Invalid
|
Undecided
|
Unassigned |
Bug Description
ex with this simple test code:
import testtools
class TestTemplate(
"""Describe here what the test should do.
and here give eventually more details.
"""
def test_always_
running pylint on a project containing this tests gives:
" Instance of 'TestTemplate' has no 'assertTrue' member (no-member)"
Falling back to testools 1.5.0 gives no pylint error.
I've the same pylint errors in 1.7.1.
This is a simple sample, but in a fully tested project, it gives no-member errors on assertTrue, assertAlmostEqual, assertFalse, assertNotEqual, assertGreaterEqual
(but not for example for assertEqual)
running the unittests is OK (no error in the tests), it gives only pylint errors (which may be a false positive, but I can figure why and how it changed in 1.6.0)
environment:
* linux (archlinux) 3.18.6-1
* python 3.4.3
* pylint 1.4.1 / astroid 1.3.4
* unittest2 1.0.0
* traceback2 1.4.0
* linecache2 1.0.0
Wow, thats fun. Uhm, I have no idea. Perhaps file as a pylint bug?