diff options
| author | Xavier Morel <xmo@odoo.com> | 2017-05-15 17:30:57 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2017-08-20 23:25:54 +0200 |
| commit | 72083bc8ba561afbbd6741ec0c4273274d6664d3 (patch) | |
| tree | b36f8e3c6bad78a2d5814b7fdfa686e8d78f9c78 /odoo/modules/module.py | |
| parent | 481a00dc4b82bc1b2cbbd6079a147fe230ac57bd (diff) | |
[FIX] P3: ImportError text changed & text model fix
Diffstat (limited to 'odoo/modules/module.py')
| -rw-r--r-- | odoo/modules/module.py | 2 |
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 [] |
