Ignore exceptions on test handler closing.

This commit is contained in:
Vinay Sajip 2012-05-19 16:50:07 +01:00
parent 6d9c1b1617
commit 7b57750db5
1 changed files with 4 additions and 1 deletions

View File

@ -1907,7 +1907,10 @@ class HandlerTest(BaseTest):
h.handle(r)
finally:
remover.join()
h.close()
try:
h.close()
except ValueError:
pass
if os.path.exists(fn):
os.unlink(fn)