mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
cce5a0d894
commit
a6670d5b92
@ -412,4 +412,10 @@ def test():
|
|||||||
raise SystemExit('No expected terminal failure')
|
raise SystemExit('No expected terminal failure')
|
||||||
p.shutdown(), p.join()
|
p.shutdown(), p.join()
|
||||||
|
|
||||||
|
# Test shutting down with busy workers
|
||||||
|
p = Pool(name='Test')
|
||||||
|
for i in range(1000):
|
||||||
|
p(i, 'import time;\ndef x(i):\n time.sleep(10000)', 'x', i)
|
||||||
|
p.shutdown(), p.join()
|
||||||
|
|
||||||
print ('Tests all passed!')
|
print ('Tests all passed!')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user