@@ -1066,9 +1066,6 @@ async def test_close(self):
10661066 await coll .count_documents ({})
10671067
10681068 async def test_close_kills_cursors (self ):
1069- if sys .platform .startswith ("java" ):
1070- # We can't figure out how to make this test reliable with Jython.
1071- raise SkipTest ("Can't test with Jython" )
10721069 test_client = await self .async_rs_or_single_client ()
10731070 # Kill any cursors possibly queued up by previous tests.
10741071 gc .collect ()
@@ -1088,7 +1085,7 @@ async def test_close_kills_cursors(self):
10881085 cursor = await coll .aggregate ([], batchSize = 10 )
10891086 self .assertTrue (bool (await anext (cursor )))
10901087 del cursor
1091- # Required for PyPy, Jython and other Python implementations that
1088+ # Required for PyPy and other Python implementations that
10921089 # don't use reference counting garbage collection.
10931090 gc .collect ()
10941091
@@ -1456,12 +1453,6 @@ async def test_contextlib(self):
14561453
14571454 @async_client_context .require_sync
14581455 def test_interrupt_signal (self ):
1459- if sys .platform .startswith ("java" ):
1460- # We can't figure out how to raise an exception on a thread that's
1461- # blocked on a socket, whether that's the main thread or a worker,
1462- # without simply killing the whole thread in Jython. This suggests
1463- # PYTHON-294 can't actually occur in Jython.
1464- raise SkipTest ("Can't test interrupts in Jython" )
14651456 if is_greenthread_patched ():
14661457 raise SkipTest ("Can't reliably test interrupts with green threads" )
14671458
0 commit comments