Open pylint-bot opened 8 years ago
Original comment by BitBucket: ceridwenv, GitHub: @ceridwen?:
I can't replicate this failure. Can you give us some more information about what conditions you're seeing the failure under?
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
Original comment by BitBucket: jlec, GitHub: @jlec?:
The whole thing is when I am running the test suite during installation on a Gentoo Linux system.
Original comment by BitBucket: ceridwenv, GitHub: @ceridwen?:
Can you check that six is installed correctly for the Python interpreter you're using? If it is, try running:
from six.moves import http_client
http_client.HTTPSConnection
and describe what happens.
Originally reported by: BitBucket: jlec, GitHub: @jlec?
Happens with all Cpython and pypy