summaryrefslogtreecommitdiff
path: root/odoo/addons
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2018-07-19 13:35:27 +0200
committerXavier Morel <xmo@odoo.com>2018-07-19 13:37:10 +0200
commit9f8eae34d1d89d7cf01eef8a1a89dc431ef5f4e2 (patch)
treeaea6469290c6969d941c729e47b6722781ef51db /odoo/addons
parentbc12428e174dcba94d86e855cbeba0e77da9b747 (diff)
[FIX] undefined variables (potential nameerror)
Backport 9ec0455abc041b855dcab18e8e185baf806b9f14 and 6a601fe6dc848cdeca2ab8429210e3b5087275d9 as they fixed various possible NameError but did so in later sub-releases.
Diffstat (limited to 'odoo/addons')
-rw-r--r--odoo/addons/test_pylint/tests/test_pylint.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/odoo/addons/test_pylint/tests/test_pylint.py b/odoo/addons/test_pylint/tests/test_pylint.py
index e067c87a5fe..dcea3ba01b1 100644
--- a/odoo/addons/test_pylint/tests/test_pylint.py
+++ b/odoo/addons/test_pylint/tests/test_pylint.py
@@ -24,9 +24,10 @@ _logger = logging.getLogger(__name__)
class TestPyLint(TransactionCase):
ENABLED_CODES = [
- 'E0601', # using variable before assignment
- 'W0123', # eval used
- 'W0101', # unreachable code
+ 'used-before-assignment',
+ 'undefined-variable',
+ 'eval-used',
+ 'unreachable',
'mixed-indentation',