unittest_regrtest.NonRegressionTC.test_numpy_crash() fails.
I use Astroid 1.0.1 and NumPy 1.8.0.
======================================================================
FAIL: test_numpy_crash (unittest_regrtest.NonRegressionTC)
test don't crash on numpy
----------------------------------------------------------------------
Traceback (most recent call last)
File "/usr/lib64/python2.7/site-packages/logilab/common/testlib.py", line 661, in _proceed
testfunc(*args, **kwargs)
['__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'f_back', 'f_builtins', 'f_code', 'f_exc_traceback', 'f_exc_type', 'f_exc_value', 'f_globals', 'f_lasti', 'f_lineno', 'f_locals', 'f_restricted', 'f_trace'] == 'unittest_regrtest'
------------------------ local variables -------------------------
args: ()
kwargs: {}
result: <logilab.common.testlib.SkipAwareTestResult run=4 errors=0 failures=0>
self: <unittest_regrtest.NonRegressionTC testMethod=test_numpy_crash>
self._TestCase__exc_info: <built-in function exc_info>
self._TestCase__testMethodName: 'test_numpy_crash'
self._cleanups: []
self._current_test_descr: None
self._options_: <Values at 0x1dde248: {'profile': None, 'skipped': None, 'tags_pattern': None, 'dbc': False, 'django': False, 'exitfirst': False, 'testdir': None, 'pdb': None, 'restart': False}>
self._resultForDoCleanups: None
self._testMethodDoc: "test don't crash on numpy"
self._testMethodName: 'test_numpy_crash'
self._type_equality_funcs: {<type 'dict'>: 'assertDictEqual', <type 'set'>: 'assertSetEqual', <type 'list'>: 'assertListEqual', <type 'frozenset'>: 'assertSetEqual', <type 'unicode'>: 'assertMultiLineEqual', <type 'tuple'>: 'assertTupleEqual'}
testfunc: <bound method NonRegressionTC.test_numpy_crash of <unittest_regrtest.NonRegressionTC testMethod=test_numpy_crash>>
------------------------------------------------------------------
File "/tmp/root/usr/lib64/python2.7/site-packages/astroid/test/unittest_regrtest.py", line 136, in test_numpy_crash
self.assertIsInstance(infered[0], Instance)
['__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'f_back', 'f_builtins', 'f_code', 'f_exc_traceback', 'f_exc_type', 'f_exc_value', 'f_globals', 'f_lasti', 'f_lineno', 'f_locals', 'f_restricted', 'f_trace'] == 'unittest_regrtest'
------------------------ local variables -------------------------
astroid: <Module(unittest_regrtest) l.0 [unittest_regrtest] at Ox2d55dd0>
builder: <astroid.builder.AstroidBuilder object at 0x2d55b10>
callfunc: <Name(multiply) l.4 [unittest_regrtest] at Ox2d55f10>
data: '\nfrom numpy import multiply\n\nmultiply(1, 2, 3)\n'
infered: [YES]
numpy: <module 'numpy' from '/usr/lib64/python2.7/site-packages/numpy/__init__.pyc'>
self: <unittest_regrtest.NonRegressionTC testMethod=test_numpy_crash>
self._TestCase__exc_info: <built-in function exc_info>
self._TestCase__testMethodName: 'test_numpy_crash'
self._cleanups: []
self._current_test_descr: None
self._options_: <Values at 0x1dde248: {'profile': None, 'skipped': None, 'tags_pattern': None, 'dbc': False, 'django': False, 'exitfirst': False, 'testdir': None, 'pdb': None, 'restart': False}>
self._resultForDoCleanups: None
self._testMethodDoc: "test don't crash on numpy"
self._testMethodName: 'test_numpy_crash'
self._type_equality_funcs: {<type 'dict'>: 'assertDictEqual', <type 'set'>: 'assertSetEqual', <type 'list'>: 'assertListEqual', <type 'frozenset'>: 'assertSetEqual', <type 'unicode'>: 'assertMultiLineEqual', <type 'tuple'>: 'assertTupleEqual'}
------------------------------------------------------------------
File "/usr/lib64/python2.7/site-packages/logilab/common/testlib.py", line 1102, in assertIsInstance
self.assertTrue(isinstance(obj, klass), msg)
['__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'f_back', 'f_builtins', 'f_code', 'f_exc_traceback', 'f_exc_type', 'f_exc_value', 'f_globals', 'f_lasti', 'f_lineno', 'f_locals', 'f_restricted', 'f_trace'] == 'unittest_regrtest'
------------------------ local variables -------------------------
klass: <class 'astroid.bases.Instance'>
msg: "YES is not an instance of <class 'astroid.bases.Instance'> but of <class 'astroid.bases._Yes'>"
obj: YES
self: <unittest_regrtest.NonRegressionTC testMethod=test_numpy_crash>
self._TestCase__exc_info: <built-in function exc_info>
self._TestCase__testMethodName: 'test_numpy_crash'
self._cleanups: []
self._current_test_descr: None
self._options_: <Values at 0x1dde248: {'profile': None, 'skipped': None, 'tags_pattern': None, 'dbc': False, 'django': False, 'exitfirst': False, 'testdir': None, 'pdb': None, 'restart': False}>
self._resultForDoCleanups: None
self._testMethodDoc: "test don't crash on numpy"
self._testMethodName: 'test_numpy_crash'
self._type_equality_funcs: {<type 'dict'>: 'assertDictEqual', <type 'set'>: 'assertSetEqual', <type 'list'>: 'assertListEqual', <type 'frozenset'>: 'assertSetEqual', <type 'unicode'>: 'assertMultiLineEqual', <type 'tuple'>: 'assertTupleEqual'}
strict: False
------------------------------------------------------------------
File "/usr/lib64/python2.7/unittest/case.py", line 424, in assertTrue
raise self.failureException(msg)
['__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'f_back', 'f_builtins', 'f_code', 'f_exc_traceback', 'f_exc_type', 'f_exc_value', 'f_globals', 'f_lasti', 'f_lineno', 'f_locals', 'f_restricted', 'f_trace'] == 'unittest_regrtest'
------------------------ local variables -------------------------
expr: False
msg: "YES is not an instance of <class 'astroid.bases.Instance'> but of <class 'astroid.bases._Yes'>"
self: <unittest_regrtest.NonRegressionTC testMethod=test_numpy_crash>
self._TestCase__exc_info: <built-in function exc_info>
self._TestCase__testMethodName: 'test_numpy_crash'
self._cleanups: []
self._current_test_descr: None
self._options_: <Values at 0x1dde248: {'profile': None, 'skipped': None, 'tags_pattern': None, 'dbc': False, 'django': False, 'exitfirst': False, 'testdir': None, 'pdb': None, 'restart': False}>
self._resultForDoCleanups: None
self._testMethodDoc: "test don't crash on numpy"
self._testMethodName: 'test_numpy_crash'
self._type_equality_funcs: {<type 'dict'>: 'assertDictEqual', <type 'set'>: 'assertSetEqual', <type 'list'>: 'assertListEqual', <type 'frozenset'>: 'assertSetEqual', <type 'unicode'>: 'assertMultiLineEqual', <type 'tuple'>: 'assertTupleEqual'}
------------------------------------------------------------------
AssertionError: YES is not an instance of <class 'astroid.bases.Instance'> but of <class 'astroid.bases._Yes'>
no stdout
no stderr