Fix incompatibility in python3

Fix the issue in tempest tests

Change-Id: I7db75adb06399003a82f4a522e4ea821ae6271e2
This commit is contained in:
wanghao 2019-12-16 16:30:19 +08:00
parent f6211b4e5c
commit ad91e171db
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ class TestQueues(base.BaseV1MessagingTest):
# NOTE(gmann): create_queue returns response status code as 201
# so specifically checking the expected empty response body as
# this is not going to be checked in response_checker().
self.assertEqual('', body)
self.assertEqual(b'', body)
self.delete_queue(queue_name)
self.assertRaises(lib_exc.NotFound,

View File

@ -33,7 +33,7 @@ class TestQueues(base.BaseV11MessagingTest):
# NOTE(gmann): create_queue returns response status code as 201
# so specifically checking the expected empty response body as
# this is not going to be checked in response_checker().
self.assertEqual('', body)
self.assertEqual(b'', body)
self.delete_queue(queue_name)
# lazy queue

View File

@ -36,7 +36,7 @@ class TestQueues(base.BaseV2MessagingTest):
# NOTE(gmann): create_queue returns response status code as 201
# so specifically checking the expected empty response body as
# this is not going to be checked in response_checker().
self.assertEqual('', body)
self.assertEqual(b'', body)
self.delete_queue(queue_name)
# lazy queue