summaryrefslogtreecommitdiff
path: root/addons/base_module_quality
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2009-01-12 09:24:57 +0100
committerFabien Pinckaers <fp@tinyerp.com>2009-01-12 09:24:57 +0100
commitcee16a0348063fe1e3c7ea013b79b710a4660dfe (patch)
treeab84e786bab17c0ee7db3d389550fc031c3e9f3c /addons/base_module_quality
parente700cb62757b8af23d00077388d636ece0e36b8d (diff)
parent52a7fb6e87c125181cdefb84b6ffc96494579542 (diff)
merge
bzr revid: fp@tinyerp.com-20090112082457-nv1he5x22vqxfqkn
Diffstat (limited to 'addons/base_module_quality')
-rw-r--r--addons/base_module_quality/speed_test/speed_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/base_module_quality/speed_test/speed_test.py b/addons/base_module_quality/speed_test/speed_test.py
index 33456e4729f..99523f23735 100644
--- a/addons/base_module_quality/speed_test/speed_test.py
+++ b/addons/base_module_quality/speed_test/speed_test.py
@@ -50,7 +50,7 @@ This test checks the speed of the module. Note that at least 5 demo data is need
module_name = module_path.split('/')[-1]
obj_list = self.get_objects(cr, uid, module_name)
obj_counter = 0
- score = 0
+ score = 0.0
obj_ids = self.get_ids(cr, uid, obj_list)
result_dict = {}
result_dict2 = {}
@@ -63,7 +63,7 @@ This test checks the speed of the module. Note that at least 5 demo data is need
if size:
list = []
- #we perform the operation twice, and count the number of queries in the second run. This allows to avoid the cache effect. (like translated terms that asks for more queries)
+ #we perform the operation twice, and count the number of queries in the second run. This allows to avoid the cache effect. (like translated terms that asks for more queries)
pool.get(obj).read(cr, uid, [ids[0]])
c = cr.count
pool.get(obj).read(cr, uid, [ids[0]])