summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2010-04-15 16:20:16 +0000
committerStephen D. Huston <shuston@apache.org>2010-04-15 16:20:16 +0000
commitee1284e9cf847fa65f1f75c59ce8bf44f49712db (patch)
tree79e724f412d54fd1a50a2d853bc366ad1141d4ae /qpid/python
parenta5ff537d8b80f469ba10bf8d9b2f0748a7dc58c0 (diff)
downloadqpid-python-ee1284e9cf847fa65f1f75c59ce8bf44f49712db.tar.gz
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
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/tests/messaging/endpoints.py5
1 files changed, 3 insertions, 2 deletions
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")