Merge "py37: deal with Exception repr changes"

This commit is contained in:
Zuul 2018-07-09 22:13:18 +00:00 committed by Gerrit Code Review
commit 8047377562
1 changed files with 2 additions and 1 deletions

View File

@ -130,7 +130,8 @@ class NotifierMiddlewareTest(utils.BaseTestCase):
exception = call_args[2]['exception']
self.assertIn('middleware.py', exception['traceback'][0])
self.assertIn('It happens!', exception['traceback'][-1])
self.assertEqual("Exception('It happens!',)", exception['value'])
self.assertTrue(exception['value'] in ("Exception('It happens!',)",
"Exception('It happens!')"))
def test_process_request_fail(self):
def notify_error(context, publisher_id, event_type,