mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Ignore exceptions on test handler closing.
This commit is contained in:
parent
6d9c1b1617
commit
7b57750db5
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue