diff --git a/LCS/Messaging/python/messaging/test/t_messagebus.py b/LCS/Messaging/python/messaging/test/t_messagebus.py
index c4a70a0d66dc1df2b6f4930824e659dcf8320333..5f2f2a9af6d75ee4650afccd3c317a90dc63a398 100644
--- a/LCS/Messaging/python/messaging/test/t_messagebus.py
+++ b/LCS/Messaging/python/messaging/test/t_messagebus.py
@@ -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