diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2014-12-04 08:53:19 +0100 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2014-12-04 08:53:19 +0100 |
commit | 45ea0c895885103afe5bc32082ed913b92d65f07 (patch) | |
tree | e7f1a86c59633d5f13fb8bbb253e37f89b6d318c | |
parent | fd0784a6c31fd9e129c40081e244205e7586ffa5 (diff) | |
download | astroid-45ea0c895885103afe5bc32082ed913b92d65f07.tar.gz |
fix test failure in unittest_regrtest, due to change in the handling of extensions loading
Allowing to load arbitrary extensions fix test_new_style_class_detection but
make test_numpy_crash fail because inference seems to do a better job than
before and doesn't return anymore a YES object. As this test only checks that it
doesn't crash, simply stop checking this.
Closes #62
-rw-r--r-- | astroid/tests/unittest_regrtest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/astroid/tests/unittest_regrtest.py b/astroid/tests/unittest_regrtest.py index dcc4d2c..0f655a6 100644 --- a/astroid/tests/unittest_regrtest.py +++ b/astroid/tests/unittest_regrtest.py @@ -30,12 +30,14 @@ class NonRegressionTests(unittest.TestCase): def setUp(self): sys.path.insert(0, resources.find('data')) + MANAGER.always_load_extensions = True def tearDown(self): # Since we may have created a brainless manager, leading # to a new cache builtin module and proxy classes in the constants, # clear out the global manager cache. MANAGER.clear_cache() + MANAGER.always_load_extensions = False sys.path.pop(0) sys.path_importer_cache.pop(resources.find('data'), None) @@ -139,7 +141,6 @@ multiply(1, 2, 3) callfunc = astroid.body[1].value.func infered = callfunc.infered() self.assertEqual(len(infered), 1) - self.assertIs(infered[0], YES) @require_version('3.0') def test_nameconstant(self): |