From 72083bc8ba561afbbd6741ec0c4273274d6664d3 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 15 May 2017 17:30:57 +0200 Subject: [PATCH] [FIX] P3: ImportError text changed & text model fix --- odoo/modules/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/modules/module.py b/odoo/modules/module.py index f0836cbe041..b249f01c1d9 100644 --- a/odoo/modules/module.py +++ b/odoo/modules/module.py @@ -434,7 +434,7 @@ def get_test_modules(module): mod = importlib.import_module('.tests', modpath) except Exception as e: # If module has no `tests` sub-module, no problem. - if str(e) != 'No module named tests': + if not pycompat.text_type(e).startswith(u'No module named'): _logger.exception('Can not `import %s`.', module) return []