diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-07-23 01:25:00 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-07-23 01:25:00 +0300 |
commit | 1f6e4d633932f938224dbdf40fb29efb41ba0c10 (patch) | |
tree | 415a6be370df74df221f0508550fe1a8f4082bbf | |
parent | 642723c222ae6701d6b8da17039b6e24fd09f235 (diff) | |
download | astroid-git-1f6e4d633932f938224dbdf40fb29efb41ba0c10.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.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/astroid/tests/unittest_regrtest.py b/astroid/tests/unittest_regrtest.py index 09c580ea..c311734d 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 |