From ee1284e9cf847fa65f1f75c59ce8bf44f49712db 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@934471 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/python/qpid/tests/messaging/endpoints.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qpid/python') diff --git a/qpid/python/qpid/tests/messaging/endpoints.py b/qpid/python/qpid/tests/messaging/endpoints.py index 9ccf8ae8e6..3133fe73cd 100644 --- a/qpid/python/qpid/tests/messaging/endpoints.py +++ b/qpid/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