File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 15
15
"""Tests for connection-pooling with greenlets and Gevent"""
16
16
17
17
import gc
18
+ import sys
18
19
import time
19
20
import unittest
20
21
@@ -201,6 +202,9 @@ def test_use_greenlets_without_gevent(self):
201
202
"Gevent is installed, can't test what happens calling "
202
203
"Pool(use_greenlets=True) when Gevent is unavailable" )
203
204
205
+ if 'java' in sys .platform :
206
+ raise SkipTest ("Can't rely on __del__ in Jython" )
207
+
204
208
# Possible outcomes of __del__.
205
209
DID_NOT_RUN , RAISED , SUCCESS = range (3 )
206
210
outcome = [DID_NOT_RUN ]
@@ -224,7 +228,7 @@ def __del__(self):
224
228
use_ssl = False ,
225
229
use_greenlets = True )
226
230
227
- # Convince Jython or PyPy to call __del__.
231
+ # Convince PyPy to call __del__.
228
232
for _ in range (10 ):
229
233
if outcome [0 ] == DID_NOT_RUN :
230
234
gc .collect ()
You can’t perform that action at this time.
0 commit comments