summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-07-23 01:25:00 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-07-23 01:25:00 +0300
commitb32b03744a3ca883e2db5b00dbba2730d2132b05 (patch)
treee5f8b517edde276992f3e3295af95984e024e321
parent3f163ad00a0019e987039ed4894d4df8ad479a1f (diff)
downloadastroid-b32b03744a3ca883e2db5b00dbba2730d2132b05.tar.gz
Patch astroid_cache in unittest_regrtest.setUp with the current builtins module, to prevent crashes when it's missing during tests.
-rw-r--r--astroid/tests/unittest_regrtest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/astroid/tests/unittest_regrtest.py b/astroid/tests/unittest_regrtest.py
index 09c580e..c311734 100644
--- a/astroid/tests/unittest_regrtest.py
+++ b/astroid/tests/unittest_regrtest.py
@@ -35,6 +35,7 @@ class NonRegressionTests(resources.AstroidCacheSetupMixin,
def setUp(self):
sys.path.insert(0, resources.find('data'))
MANAGER.always_load_extensions = True
+ MANAGER.astroid_cache[BUILTINS] = self._builtins
def tearDown(self):
# Since we may have created a brainless manager, leading