Kaydet (Commit) fd25594a authored tarafından Giampaolo Rodolà's avatar Giampaolo Rodolà

Removed the assertion that dispatcher.connected attribute must be False after a…

Removed the assertion that dispatcher.connected attribute must be False after a single connect() call. Solaris and FreeBSD buildbots failures showed how connect() can succeed even in a single call. All bo failures should definitively be fixed now.
üst fc3bfad2
...@@ -618,12 +618,8 @@ class BaseTestAPI(unittest.TestCase): ...@@ -618,12 +618,8 @@ class BaseTestAPI(unittest.TestCase):
# we start disconnected # we start disconnected
self.assertFalse(server.connected) self.assertFalse(server.connected)
self.assertTrue(server.accepting) self.assertTrue(server.accepting)
# XXX - Solaris seems to connect() immediately even without # this can't be taken for granted across all platforms
# starting the poller. This is something which should be #self.assertFalse(client.connected)
# fixed as handle_connect() gets called immediately even if
# no connection actually took place (see issue #8490).
if not sys.platform.startswith("sunos"):
self.assertFalse(client.connected)
self.assertFalse(client.accepting) self.assertFalse(client.accepting)
# execute some loops so that client connects to server # execute some loops so that client connects to server
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment