From e03cbbe0d8f701d6ecff33bb1c735602db1acdbb Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Wed, 7 Dec 2016 14:25:49 -0800 Subject: [PATCH] Fixes Qpid tests --- t/unit/transport/test_qpid.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/unit/transport/test_qpid.py b/t/unit/transport/test_qpid.py index e27269b9..bf796212 100644 --- a/t/unit/transport/test_qpid.py +++ b/t/unit/transport/test_qpid.py @@ -311,7 +311,7 @@ class test_Connection__init__(ExtraAssertionsMixin, ConnectionTestBase): except AuthenticationFailure as error: exc_info = sys.exc_info() assert not isinstance(error, QpidException) - assert exc_info[1] is 'b' + assert exc_info[1] == 'b' assert exc_info[2] is None else: self.fail('ConnectionError type was not mutated correctly') @@ -328,7 +328,7 @@ class test_Connection__init__(ExtraAssertionsMixin, ConnectionTestBase): except AuthenticationFailure as error: exc_info = sys.exc_info() assert not isinstance(error, QpidException) - assert exc_info[1] is 'b' + assert exc_info[1] == 'b' assert exc_info[2] is None else: self.fail('ConnectionError type was not mutated correctly') @@ -355,7 +355,7 @@ class test_Connection__init__(ExtraAssertionsMixin, ConnectionTestBase): except AuthenticationFailure as error: exc_info = sys.exc_info() assert not isinstance(error, QpidException) - assert exc_info[1] is 'b' + assert exc_info[1] == 'b' assert exc_info[2] is None else: self.fail('ConnectionError type was not mutated correctly')