From 1da2769ba27a7b40ad88b6acc526311a45fed3ee Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Thu, 15 Apr 2010 16:20:16 +0000 Subject: Edited to work on Windows; resolves QPID-2510. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@934471 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/tests/messaging/endpoints.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/qpid/tests/messaging/endpoints.py b/python/qpid/tests/messaging/endpoints.py index 9ccf8ae8e6..3133fe73cd 100644 --- a/python/qpid/tests/messaging/endpoints.py +++ b/python/qpid/tests/messaging/endpoints.py @@ -39,10 +39,11 @@ class SetupTests(Base): def testConnectError(self): try: - self.conn = Connection.establish("localhost:0") + # Specifying port 0 yields a bad address on Windows; port 4 is unassigned + self.conn = Connection.establish("localhost:4") assert False, "connect succeeded" except ConnectError, e: - assert "Connection refused" in str(e) + assert "refused" in str(e) def testGetError(self): self.conn = Connection("localhost:0") -- cgit v1.2.1