diff options
Diffstat (limited to 'qpid/python')
| -rw-r--r-- | qpid/python/qpid/tests/messaging/endpoints.py | 5 |
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") |
