Skip to content
Snippets Groups Projects
Commit 010b18e0 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #8887: Fixed pattern matching in t_messagebus to support more qpid installations

parent 4f2baf3d
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ class FromBusInitFailed(unittest.TestCase):
Connecting to non-existent broker address must raise MessageBusError
"""
regexp = re.escape(self.error)
regexp += '.*' + 'No address associated with hostname'
regexp += '.*' + '(No address associated with hostname|Name or service not known)'
with self.assertRaisesRegexp(MessageBusError, regexp):
with FromBus(QUEUE, broker="foo.bar", broker_options={'reconnect': False}):
pass
......@@ -162,7 +162,7 @@ class ToBusInitFailed(unittest.TestCase):
Connecting to non-existent broker address must raise MessageBusError
"""
regexp = re.escape(self.error)
regexp += '.*' + 'No address associated with hostname'
regexp += '.*' + '(No address associated with hostname|Name or service not known)'
with self.assertRaisesRegexp(MessageBusError, regexp):
with ToBus(QUEUE, broker="foo.bar", broker_options={'reconnect': False}):
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment