Fix ProcessLookupError if process finishes before we kill it (#1126)

This commit is contained in:
Marcos Del Sol Vives 2018-06-01 22:27:09 +02:00 committed by Noam Meltzer
parent f8a17cddcb
commit d2059ed184

View file

@ -40,4 +40,9 @@ class TestInputFile(object):
assert in_file.mimetype == 'image/png'
assert in_file.filename == 'image.png'
proc.kill()
try:
proc.kill()
except ProcessLookupError:
# This exception may be thrown if the process has finished before we had the chance
# to kill it.
pass