[Python-checkins] r80895 - python/branches/asyncore-tests-issue8490/Lib/test/test_asyncore.py
giampaolo.rodola
python-checkins at python.org
Fri May 7 00:46:50 CEST 2010
Author: giampaolo.rodola
Date: Fri May 7 00:46:50 2010
New Revision: 80895
Log:
workarounds to make tests pass on solaris: disabled handle_expt test and connect attribute test
Modified:
python/branches/asyncore-tests-issue8490/Lib/test/test_asyncore.py
Modified: python/branches/asyncore-tests-issue8490/Lib/test/test_asyncore.py
==============================================================================
--- python/branches/asyncore-tests-issue8490/Lib/test/test_asyncore.py (original)
+++ python/branches/asyncore-tests-issue8490/Lib/test/test_asyncore.py Fri May 7 00:46:50 2010
@@ -552,6 +552,7 @@
client = TestClient(server.address)
self.loop_waiting_for_flag(client)
+ @unittest.skipIf(sys.platform.startswith("solaris"), "OOB support is broken")
def test_handle_expt(self):
# Make sure handle_expt is called on OOB data received.
# Note: this might fail on some platforms as OOB data is
@@ -573,7 +574,7 @@
def test_handle_error(self):
class TestClient(BaseClient):
- def handle_connect(self):
+ def handle_write(self):
1.0 / 0
def handle_error(self):
self.flag = True
@@ -595,7 +596,10 @@
# we start disconnected
self.assertFalse(server.connected)
self.assertTrue(server.accepting)
- self.assertFalse(client.connected)
+ # solaris seems to connect() immediately even without starting
+ # the poller
+ if not sys.platform.startswith("solaris"):
+ self.assertFalse(client.connected)
self.assertFalse(client.accepting)
# execute some loops so that client connects to server
More information about the Python-checkins
mailing list