summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTorsten Marek <shlomme@gmail.com>2014-07-24 23:40:42 +0200
committerTorsten Marek <shlomme@gmail.com>2014-07-24 23:40:42 +0200
commit36856a5f1a1c358309cb888d670a898bbfe014cd (patch)
treece9adaaf843d607f5aad0223be690f931269e52f /test
parent59664a4f325772118f9a7f6b4e38696d3211cde6 (diff)
downloadastroid-git-36856a5f1a1c358309cb888d670a898bbfe014cd.tar.gz
Fix the test order issue by clearing the cache once more after unittest_regrtest.
Diffstat (limited to 'test')
-rw-r--r--test/unittest_regrtest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unittest_regrtest.py b/test/unittest_regrtest.py
index fb11c46e..96c235ea 100644
--- a/test/unittest_regrtest.py
+++ b/test/unittest_regrtest.py
@@ -32,6 +32,10 @@ class NonRegressionTC(TestCase):
sys.path.insert(0, join(dirname(abspath(__file__)), 'regrtest_data'))
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()
sys.path.pop(0)
def brainless_manager(self):