[Jython-checkins] jython: Add/clean test_asyncore skips.

frank.wierzbicki jython-checkins at python.org
Fri Jan 4 00:28:32 CET 2013


http://hg.python.org/jython/rev/b7b01f743f66
changeset:   6926:b7b01f743f66
user:        Frank Wierzbicki <fwierzbicki at gmail.com>
date:        Thu Jan 03 15:28:22 2013 -0800
summary:
  Add/clean test_asyncore skips.

files:
  Lib/test/test_asyncore.py |  9 ++++-----
  1 files changed, 4 insertions(+), 5 deletions(-)


diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py
--- a/Lib/test/test_asyncore.py
+++ b/Lib/test/test_asyncore.py
@@ -10,7 +10,7 @@
 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:
@@ -351,6 +351,7 @@
     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):
@@ -549,8 +550,7 @@
         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
 
@@ -578,8 +578,7 @@
         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

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list