Kill the tpool threads so that they don't whine on interpreter exit.
This commit is contained in:
@@ -218,6 +218,7 @@ def test_monkey_patch_threading():
|
|||||||
w1.wait()
|
w1.wait()
|
||||||
print tickcount[0]
|
print tickcount[0]
|
||||||
assert tickcount[0] > 900
|
assert tickcount[0] > 900
|
||||||
|
tpool.killall()
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class Tpool(ProcessBase):
|
class Tpool(ProcessBase):
|
||||||
@@ -232,6 +233,7 @@ patcher.monkey_patch()
|
|||||||
from eventlet import tpool
|
from eventlet import tpool
|
||||||
print "newmod", tpool.execute(len, "hi")
|
print "newmod", tpool.execute(len, "hi")
|
||||||
print "newmod", tpool.execute(len, "hi2")
|
print "newmod", tpool.execute(len, "hi2")
|
||||||
|
tpool.killall()
|
||||||
"""
|
"""
|
||||||
self.write_to_tempfile("newmod", new_mod)
|
self.write_to_tempfile("newmod", new_mod)
|
||||||
output, lines = self.launch_subprocess('newmod.py')
|
output, lines = self.launch_subprocess('newmod.py')
|
||||||
|
Reference in New Issue
Block a user