This is an automated email from the ASF dual-hosted git repository. chug pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/master by this push: new d84d75e DISPATCH-1275: Fix exception test to work in python2 and python3 d84d75e is described below commit d84d75ea48954a3064e1c776fead7e061445308e Author: Chuck Rolke <c...@apache.org> AuthorDate: Fri Mar 22 17:43:02 2019 -0400 DISPATCH-1275: Fix exception test to work in python2 and python3 --- tests/system_tests_one_router.py | 2 +- tests/system_tests_qdmanage.py | 2 +- tests/system_tests_two_routers.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/system_tests_one_router.py b/tests/system_tests_one_router.py index 58ac120..c5fa323 100644 --- a/tests/system_tests_one_router.py +++ b/tests/system_tests_one_router.py @@ -486,7 +486,7 @@ class OneRouterTest(TestCase): outputs = json.loads(self.run_qdmanage(update_command)) except Exception as e: print (e) - if "Forbidden" in e.message: + if "Forbidden" in str(e): passed = True # The test has passed since we were not allowed to delete a connection diff --git a/tests/system_tests_qdmanage.py b/tests/system_tests_qdmanage.py index 7df80f6..cd7bab9 100644 --- a/tests/system_tests_qdmanage.py +++ b/tests/system_tests_qdmanage.py @@ -458,7 +458,7 @@ class QdmanageTest(TestCase): try: outs = json.loads(self.run_qdmanage(delete_command)) except Exception as e: - if "Forbidden" in e.message: + if "Forbidden" in str(e): passed = True # The test has passed since we were forbidden from deleting a connection diff --git a/tests/system_tests_two_routers.py b/tests/system_tests_two_routers.py index 9fa7f2a..b336755 100644 --- a/tests/system_tests_two_routers.py +++ b/tests/system_tests_two_routers.py @@ -300,7 +300,7 @@ class TwoRouterTest(TestCase): try: json.loads(self.run_qdmanage(update_command)) except Exception as e: - if "Forbidden" in e.message: + if "Forbidden" in str(e): passed = True # The test has passed since we were forbidden from deleting --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org