diff --git a/LCS/Messaging/python/messaging/test/t_messagebus.py b/LCS/Messaging/python/messaging/test/t_messagebus.py
index 6404845041d6ab40d47f88df6729a3dd2f0884a2..87d871826ecefef256d4b10dd5dea9a9fe856478 100644
--- a/LCS/Messaging/python/messaging/test/t_messagebus.py
+++ b/LCS/Messaging/python/messaging/test/t_messagebus.py
@@ -143,7 +143,7 @@ class FromBusInitFailed(unittest.TestCase):
         """
         Connecting to non-existent broker address must raise MessageBusError
         """
-        with self.assertRaisesRegex(MessageBusError, "Name or service not known"):
+        with self.assertRaisesRegex(MessageBusError, "No address associated with hostname"):
             with FromBus(self.test_queue.address, broker="foo.bar", auto_reconnect=False):
                 pass
 
@@ -151,7 +151,7 @@ class FromBusInitFailed(unittest.TestCase):
         """
         Connecting to broker on wrong port must raise MessageBusError
         """
-        with self.assertRaisesRegex(MessageBusError, "Connection refused"):
+        with self.assertRaisesRegex(MessageBusError, "recv: errno: 111"):
             with FromBus("fake" + self.test_queue.address, broker="localhost:4", auto_reconnect=False):
                 pass
 
@@ -195,7 +195,7 @@ class ToBusInitFailed(unittest.TestCase):
         """
         Connecting to non-existent broker address must raise MessageBusError
         """
-        with self.assertRaisesRegex(MessageBusError, "Name or service not known"):
+        with self.assertRaisesRegex(MessageBusError, "No address associated with hostname"):
             with ToBus(self.test_queue.address, broker="foo.bar", auto_reconnect=False):
                 pass
 
@@ -203,7 +203,7 @@ class ToBusInitFailed(unittest.TestCase):
         """
         Connecting to broker on wrong port must raise MessageBusError
         """
-        with self.assertRaisesRegex(MessageBusError, "Connection refused"):
+        with self.assertRaisesRegex(MessageBusError, "recv: errno: 111"):
             with ToBus(self.test_queue.address, broker="localhost:4", auto_reconnect=False):
                 pass