Commits

Frank Wierzbicki  committed b7b01f7

Add/clean test_asyncore skips.

  • Participants
  • Parent commits a28af30

Comments (0)

Files changed (1)

File Lib/test/test_asyncore.py

 import struct
 
 from test import test_support
-from test.test_support import TESTFN, run_unittest, unlink
+from test.test_support import TESTFN, run_unittest, unlink, is_jython
 from StringIO import StringIO
 
 try:
     def tearDown(self):
         asyncore.close_all()
 
+    @unittest.skipIf(is_jython, 'FIXME: Currently not working on jython')
     @unittest.skipUnless(threading, 'Threading required for this test.')
     @test_support.reap_threads
     def test_send(self):
         client = BaseClient(server.address)
         self.loop_waiting_for_flag(server)
 
-    @unittest.skipIf(sys.platform.startswith("java"),
-                     "FIXME: Currently not working on jython")
+    @unittest.skipIf(is_jython, "FIXME: Currently not working on jython")
     def test_handle_read(self):
         # make sure handle_read is called on data received
 
         client = TestClient(server.address)
         self.loop_waiting_for_flag(client)
 
-    @unittest.skipIf(sys.platform.startswith("java"),
-                     "FIXME: Currently not working on jython")
+    @unittest.skipIf(is_jython, "FIXME: Currently not working on jython")
     def test_handle_close(self):
         # make sure handle_close is called when the other end closes
         # the connection