summaryrefslogtreecommitdiff
path: root/odoo/addons/test_impex/tests/test_export.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2017-05-02 12:07:30 +0200
committerOlivier Dony <odo@openerp.com>2017-08-20 23:25:54 +0200
commit7dd062f83552fa8ff96224c29d60bafc001d73d3 (patch)
treed507e27e9d5daa91981e04b5aa81a802a9854a8d /odoo/addons/test_impex/tests/test_export.py
parent3824b5dcc13678d3985ad45ac21dcf9ac9202c20 (diff)
[FIX] P3: text model types
* remove references to basestring & unicode (use relevant pycompat helpers) * remove some str calls (either entirely or replaced by relevant helper, either text or native) * use better API to avoid unnecessary conversions * remove some XML declarations in views
Diffstat (limited to 'odoo/addons/test_impex/tests/test_export.py')
-rw-r--r--odoo/addons/test_impex/tests/test_export.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/odoo/addons/test_impex/tests/test_export.py b/odoo/addons/test_impex/tests/test_export.py
index 72a3b2a6f75..9c7311319e8 100644
--- a/odoo/addons/test_impex/tests/test_export.py
+++ b/odoo/addons/test_impex/tests/test_export.py
@@ -69,7 +69,7 @@ class test_integer_field(CreatorCase):
def test_huge(self):
self.assertEqual(
self.export(2**31-1),
- [[unicode(2**31-1)]])
+ [[pycompat.text_type(2**31-1)]])
class test_float_field(CreatorCase):
@@ -319,7 +319,7 @@ class test_m2o(CreatorCase):
record = self.env['export.integer'].create({'value': 42})
self.assertEqual(
self.export(record.id, fields=['value/.id', 'value/value']),
- [[unicode(record.id), u'42']])
+ [[pycompat.text_type(record.id), u'42']])
def test_external_id(self):
record = self.env['export.integer'].create({'value': 42})