Commits

Frank Wierzbicki committed b7b01f7

Add/clean test_asyncore skips.

Comments (0)

Files changed (1)

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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.