From 6b0a1df56aeed230669024e6b7bd1d2d5290f3d2 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Mon, 1 Jun 2009 17:29:51 +0000 Subject: [PATCH] revert unrelated change in r.27287, sorry. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27322 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/testCacheTool.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/product/ERP5Type/tests/testCacheTool.py b/product/ERP5Type/tests/testCacheTool.py index d13a3842ef..91c7b2ba58 100644 --- a/product/ERP5Type/tests/testCacheTool.py +++ b/product/ERP5Type/tests/testCacheTool.py @@ -190,7 +190,7 @@ return result py_script_id = "testCachedMethod" py_script_obj = getattr(portal, py_script_id) for cf_name in ('ram_cache_factory', -# 'distributed_ram_cache_factory', + 'distributed_ram_cache_factory', 'sql_cache_factory', 'zodb_cache_factory',): my_cache = CachingMethod(py_script_obj, @@ -229,8 +229,7 @@ return result ## 2nd call - should be cached now start = time.time() - for i in xrange(100): - cached = my_cache(nb_iterations, portal_path=('', portal.getId())) + cached = my_cache(nb_iterations, portal_path=('', portal.getId())) end = time.time() calculation_time = end-start print "\n\tCalculation time (2nd call)", calculation_time -- 2.30.9