[REV] revert refresh_routing_map

bzr revid: fme@openerp.com-20140326160150-daoc6fypcmckyynk
This commit is contained in:
Fabien Meghazi 2014-03-26 17:01:50 +01:00
parent 2eea637227
commit 4d850cdbc9
2 changed files with 4 additions and 7 deletions

View File

@ -145,11 +145,6 @@ class ir_http(osv.AbstractModel):
return self._routing_map
def refresh_routing_map(self):
if hasattr(ir_http, '_routing_map'):
del(ir_http._routing_map)
return self.routing_map()
def convert_exception_to(to_type, with_message=False):
""" Should only be called from an exception handler. Fetches the current
exception data from sys.exc_info() and creates a new exception of type

View File

@ -187,9 +187,11 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, skip_modules=
if tools.config.options['test_enable']:
# Yamel test
report.record_result(load_test(module_name, idref, mode))
# Force routing map to be rebuilt between each test suite on modules
registry['ir.http'].refresh_routing_map()
# Python tests
ir_http = registry['ir.http']
if hasattr(ir_http, '_routing_map'):
# Force routing map to be rebuilt between each module test suite
del(ir_http._routing_map)
report.record_result(openerp.modules.module.run_unit_tests(module_name, cr.dbname))
processed_modules.append(package.name)