Commit 87b899b3 authored by Nicolas Dumazet's avatar Nicolas Dumazet

silence a warning: use portal_caches.clearCache instead of global clearCache()


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42788 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 06bc8449
......@@ -463,7 +463,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
def _cache():
return cached_var
from Products.ERP5Type.Cache import CachingMethod, clearCache
from Products.ERP5Type.Cache import CachingMethod
cache = CachingMethod(_cache, id='testing_cache')
self.assertEquals(cache(), cached_var)
......@@ -473,7 +473,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
# cache hit -> still the old variable
self.assertEquals(cache(), cached_var_orig)
clearCache()
self.portal.portal_caches.clearCache()
self.assertEquals(cache(), cached_var)
def test_07_afterCloneScript(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment