summaryrefslogtreecommitdiff
path: root/odoo/modules/module.py
diff options
context:
space:
mode:
Diffstat (limited to 'odoo/modules/module.py')
-rw-r--r--odoo/modules/module.py2
1 files changed, 1 insertions, 1 deletions
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 []