Open pylint-bot opened 8 years ago
Original comment by BitBucket: jlec, GitHub: jlec:
Okay, the original report happened when running pytest.
Using the new unittest way I see
#!python
python -m unittest discover -p "unittest*.py" --verbose
....
test_from_imports (astroid.tests.unittest_brain.SixBrainTest) ... FAIL
======================================================================
FAIL: test_from_imports (astroid.tests.unittest_brain.SixBrainTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "astroid/tests/unittest_brain.py", line 276, in test_from_imports
self.assertIsInstance(inferred, nodes.ClassDef)
AssertionError: YES is not an instance of <class 'astroid.scoped_nodes.ClassDef'>
----------------------------------------------------------------------
Ran 495 tests in 10.969s
Originally reported by: BitBucket: jlec, GitHub: jlec
Happens with all Cpython and pypy