Commit d37c8ea9 authored by Jason Madden's avatar Jason Madden

Maybe don't want the added gevent.idle()

parent 4fb1973c
......@@ -19,7 +19,7 @@ _ssl = __ssl__._ssl # pylint:disable=no-member
import errno
from gevent._socket2 import socket
from gevent._socket2 import AF_INET
from gevent._socket2 import AF_INET # pylint:disable=no-name-in-module
from gevent.socket import timeout_default
from gevent.socket import create_connection
from gevent.socket import error as socket_error
......
......@@ -225,7 +225,6 @@ class TestTCP(greentest.TestCase):
raise
log("Client will close")
client.close()
gevent.idle()
finally:
server.join(10)
assert not server.is_alive()
......
......@@ -394,12 +394,12 @@ class ThreadTests(unittest.TestCase):
warnings.simplefilter('ignore', DeprecationWarning)
# get/set checkinterval are deprecated in Python 3,
# and removed in Python 3.9
old_interval = sys.getcheckinterval()
old_interval = sys.getcheckinterval() # pylint:disable=no-member
try:
for i in xrange(1, 100):
# Try a couple times at each thread-switching interval
# to get more interleavings.
sys.setcheckinterval(i // 5)
sys.setcheckinterval(i // 5) # pylint:disable=no-member
t = threading.Thread(target=lambda: None)
t.start()
t.join()
......@@ -407,7 +407,7 @@ class ThreadTests(unittest.TestCase):
self.assertFalse(t in l,
"#1703448 triggered after %d trials: %s" % (i, l))
finally:
sys.setcheckinterval(old_interval)
sys.setcheckinterval(old_interval) # pylint:disable=no-member
if not hasattr(sys, 'pypy_version_info'):
def test_no_refcycle_through_target(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment