mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-02 20:23:22 +03:00
waiting to read stdout was blocking when the buffer filled
This commit is contained in:
parent
4e6ea0fc42
commit
2f7bbffb5b
|
@ -14,11 +14,8 @@ def test_one(params):
|
||||||
proc = subprocess.Popen(command,
|
proc = subprocess.Popen(command,
|
||||||
stdin=subprocess.PIPE,
|
stdin=subprocess.PIPE,
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE)
|
||||||
proc.stdin.close()
|
(trace, stderr) = proc.communicate()
|
||||||
status = proc.wait()
|
status = proc.returncode
|
||||||
print ("Waiting on read: %s, %s" % params)
|
|
||||||
trace = proc.stdout.read()
|
|
||||||
proc.stdout.close()
|
|
||||||
print ("Done with %s, %s -- %s" % (python, architecture, status ))
|
print ("Done with %s, %s -- %s" % (python, architecture, status ))
|
||||||
return (python, architecture, status, trace)
|
return (python, architecture, status, trace)
|
||||||
except Exception as msg:
|
except Exception as msg:
|
||||||
|
@ -29,16 +26,15 @@ def test_one(params):
|
||||||
if __name__=='__main__':
|
if __name__=='__main__':
|
||||||
|
|
||||||
os.chdir('..')
|
os.chdir('..')
|
||||||
#pool = multiprocessing.Pool()
|
pool = multiprocessing.Pool()
|
||||||
matrix = [(python, architecture) for python in pythons
|
matrix = [(python, architecture) for python in pythons
|
||||||
for architecture in ('', 'x64')]
|
for architecture in ('', 'x64')]
|
||||||
results = map(test_one, matrix)
|
|
||||||
|
results = pool.map(test_one, matrix)
|
||||||
|
|
||||||
for (python, architecture, status, trace) in results:
|
for (python, architecture, status, trace) in results:
|
||||||
print ("%s%s: %s" % (python, architecture, status))
|
print ("%s%s: %s" % (python, architecture, status))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user