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 ...@@ -19,7 +19,7 @@ _ssl = __ssl__._ssl # pylint:disable=no-member
import errno import errno
from gevent._socket2 import socket 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 timeout_default
from gevent.socket import create_connection from gevent.socket import create_connection
from gevent.socket import error as socket_error from gevent.socket import error as socket_error
......
...@@ -225,7 +225,6 @@ class TestTCP(greentest.TestCase): ...@@ -225,7 +225,6 @@ class TestTCP(greentest.TestCase):
raise raise
log("Client will close") log("Client will close")
client.close() client.close()
gevent.idle()
finally: finally:
server.join(10) server.join(10)
assert not server.is_alive() assert not server.is_alive()
......
...@@ -394,12 +394,12 @@ class ThreadTests(unittest.TestCase): ...@@ -394,12 +394,12 @@ class ThreadTests(unittest.TestCase):
warnings.simplefilter('ignore', DeprecationWarning) warnings.simplefilter('ignore', DeprecationWarning)
# get/set checkinterval are deprecated in Python 3, # get/set checkinterval are deprecated in Python 3,
# and removed in Python 3.9 # and removed in Python 3.9
old_interval = sys.getcheckinterval() old_interval = sys.getcheckinterval() # pylint:disable=no-member
try: try:
for i in xrange(1, 100): for i in xrange(1, 100):
# Try a couple times at each thread-switching interval # Try a couple times at each thread-switching interval
# to get more interleavings. # to get more interleavings.
sys.setcheckinterval(i // 5) sys.setcheckinterval(i // 5) # pylint:disable=no-member
t = threading.Thread(target=lambda: None) t = threading.Thread(target=lambda: None)
t.start() t.start()
t.join() t.join()
...@@ -407,7 +407,7 @@ class ThreadTests(unittest.TestCase): ...@@ -407,7 +407,7 @@ class ThreadTests(unittest.TestCase):
self.assertFalse(t in l, self.assertFalse(t in l,
"#1703448 triggered after %d trials: %s" % (i, l)) "#1703448 triggered after %d trials: %s" % (i, l))
finally: finally:
sys.setcheckinterval(old_interval) sys.setcheckinterval(old_interval) # pylint:disable=no-member
if not hasattr(sys, 'pypy_version_info'): if not hasattr(sys, 'pypy_version_info'):
def test_no_refcycle_through_target(self): 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