Skip to content

Commit f42d77a

Browse files
committed
Skip test_use_greenlets_without_gevent on Jython.
1 parent 4b9f3ec commit f42d77a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test_pooling_gevent.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""Tests for connection-pooling with greenlets and Gevent"""
1616

1717
import gc
18+
import sys
1819
import time
1920
import unittest
2021

@@ -201,6 +202,9 @@ def test_use_greenlets_without_gevent(self):
201202
"Gevent is installed, can't test what happens calling "
202203
"Pool(use_greenlets=True) when Gevent is unavailable")
203204

205+
if 'java' in sys.platform:
206+
raise SkipTest("Can't rely on __del__ in Jython")
207+
204208
# Possible outcomes of __del__.
205209
DID_NOT_RUN, RAISED, SUCCESS = range(3)
206210
outcome = [DID_NOT_RUN]
@@ -224,7 +228,7 @@ def __del__(self):
224228
use_ssl=False,
225229
use_greenlets=True)
226230

227-
# Convince Jython or PyPy to call __del__.
231+
# Convince PyPy to call __del__.
228232
for _ in range(10):
229233
if outcome[0] == DID_NOT_RUN:
230234
gc.collect()

0 commit comments

Comments
 (0)