From ad91e171db3f052af3087c01aca0e6d91bff3265 Mon Sep 17 00:00:00 2001 From: wanghao Date: Mon, 16 Dec 2019 16:30:19 +0800 Subject: [PATCH] Fix incompatibility in python3 Fix the issue in tempest tests Change-Id: I7db75adb06399003a82f4a522e4ea821ae6271e2 --- zaqar_tempest_plugin/tests/v1/test_queues.py | 2 +- zaqar_tempest_plugin/tests/v1_1/test_queues.py | 2 +- zaqar_tempest_plugin/tests/v2/test_queues.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zaqar_tempest_plugin/tests/v1/test_queues.py b/zaqar_tempest_plugin/tests/v1/test_queues.py index 313d10c..02458c6 100644 --- a/zaqar_tempest_plugin/tests/v1/test_queues.py +++ b/zaqar_tempest_plugin/tests/v1/test_queues.py @@ -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, diff --git a/zaqar_tempest_plugin/tests/v1_1/test_queues.py b/zaqar_tempest_plugin/tests/v1_1/test_queues.py index d906429..8c773fb 100644 --- a/zaqar_tempest_plugin/tests/v1_1/test_queues.py +++ b/zaqar_tempest_plugin/tests/v1_1/test_queues.py @@ -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 diff --git a/zaqar_tempest_plugin/tests/v2/test_queues.py b/zaqar_tempest_plugin/tests/v2/test_queues.py index d2d087a..4b33e14 100644 --- a/zaqar_tempest_plugin/tests/v2/test_queues.py +++ b/zaqar_tempest_plugin/tests/v2/test_queues.py @@ -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