diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-08-24 13:17:53 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-08-24 13:17:53 +0200 |
| commit | 017ee5eab376b4f09beb62812c1cbc682009ed86 (patch) | |
| tree | 2af185b0604cd8ce9129c39137bbf39d21d7be89 /odoo/modules/module.py | |
| parent | 006c16198f7f68c9dc8b895defd013f33008840a (diff) | |
| parent | 877e7098719195ed2934fc9c3b5c3bd8ad8bab07 (diff) | |
[MERGE] forward port branch saas-17 up to 877e7098719
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 [] |
