summaryrefslogtreecommitdiff
path: root/odoo/addons/test_new_api/tests/test_attributes.py
diff options
context:
space:
mode:
authorxmo-odoo <xmo@odoo.com>2017-04-27 13:59:33 +0200
committerGitHub <noreply@github.com>2017-04-27 13:59:33 +0200
commit2e6a589f417af48e3322955ffff6e94b6d8a24e3 (patch)
treeaa613ecc1f74a9531a03de89aa2bdc7bb32eed3b /odoo/addons/test_new_api/tests/test_attributes.py
parentde4a2216b953abb86094c9bfa5f45b1eaaa79d3d (diff)
[FIX] builtins removed from Python 3
* Reverse wrapper courtesy of @rco-odoo's original P3 branch * thin compat module stripped down from werkzeug (to augment as needed) issue 8530
Diffstat (limited to 'odoo/addons/test_new_api/tests/test_attributes.py')
-rw-r--r--odoo/addons/test_new_api/tests/test_attributes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/odoo/addons/test_new_api/tests/test_attributes.py b/odoo/addons/test_new_api/tests/test_attributes.py
index 636dadf2a06..b37afe7e30d 100644
--- a/odoo/addons/test_new_api/tests/test_attributes.py
+++ b/odoo/addons/test_new_api/tests/test_attributes.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
from odoo.tests import common
+from odoo.tools import pycompat
ANSWER_TO_ULTIMATE_QUESTION = 42
@@ -16,7 +17,7 @@ class TestAttributes(common.TransactionCase):
self.assertTrue(hasattr(instance, 'unknown'))
# Is it the right type ?
- self.assertIsInstance(instance.unknown, (int, long))
+ self.assertIsInstance(instance.unknown, pycompat.integer_types)
# Is it the right value, in case of, we don't know ;-)
self.assertEqual(instance.unknown, ANSWER_TO_ULTIMATE_QUESTION)