diff options
author | Stephen D. Huston <shuston@apache.org> | 2010-04-15 16:20:16 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2010-04-15 16:20:16 +0000 |
commit | 1da2769ba27a7b40ad88b6acc526311a45fed3ee (patch) | |
tree | 007bbdcae8473a5c747893bec4256b3f79c576bf /python/qpid/tests/messaging/endpoints.py | |
parent | 0d368a574d1898a1dc7ec04847728d63ce74ee5e (diff) | |
download | qpid-python-1da2769ba27a7b40ad88b6acc526311a45fed3ee.tar.gz |
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
Diffstat (limited to 'python/qpid/tests/messaging/endpoints.py')
-rw-r--r-- | python/qpid/tests/messaging/endpoints.py | 5 |
1 files changed, 3 insertions, 2 deletions
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") |