Commit 6efffde0 authored by Jérome Perrin's avatar Jérome Perrin

testERP5Catalog py3

parent 841870a2
......@@ -1655,7 +1655,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
def test_54_FixIntUid(self):
if six.PY3:
return unittest.skipTest(
return unittest.SkipTest(
"Python3 does not have different types for int and long")
portal = self.getPortal()
......@@ -3330,7 +3330,7 @@ VALUES
def test_reindexWithGroupId(self):
CatalogTool = type(self.getCatalogTool().aq_base)
counts = []
orig_catalogObjectList = CatalogTool.catalogObjectList.__func__
orig_catalogObjectList = CatalogTool.catalogObjectList
def catalogObjectList(self, object_list, *args, **kw):
counts.append(len(object_list))
return orig_catalogObjectList(self, object_list, *args, **kw)
......@@ -4134,7 +4134,7 @@ VALUES
self.assertEqual(six.moves.http_client.OK, ret.getStatus())
# check if we did not just publish the result of `str(portal_catalog.__call__())`,
# but a proper page
self.assertIn('<title>Catalog Tool - portal_catalog', ret.getBody())
self.assertIn(b'<title>Catalog Tool - portal_catalog', ret.getBody())
def testSearchNonAsciiWithTheInitUser(self):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment