Commit ad2e30d6 authored by Jérome Perrin's avatar Jérome Perrin

testListBox: py3

parent 20cdf535
......@@ -770,8 +770,8 @@ class TestListBox(ERP5TypeTestCase):
)
self.assertEqual(result.getStatus(), 500)
body = result.getBody()
self.assertIn('Error Type: TimeoutReachedError', body)
self.assertIn('Error Value: 1969: Query execution was interrupted (max_statement_time exceeded): SET STATEMENT', body)
self.assertIn(b'Error Type: TimeoutReachedError', body)
self.assertIn(b'Error Value: 1969: Query execution was interrupted (max_statement_time exceeded): SET STATEMENT', body)
def test_zodb_timeout(self):
portal = self.getPortal()
......@@ -808,7 +808,7 @@ return context.objectValues()
'ERP5TypeTestCase:',
)
self.assertEqual(result.getStatus(), 500)
self.assertIn('Error Type: TimeoutReachedError', result.getBody())
self.assertIn(b'Error Type: TimeoutReachedError', result.getBody())
def test_suite():
suite = unittest.TestSuite()
......
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