mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +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)
|
h.handle(r)
|
||||||
finally:
|
finally:
|
||||||
remover.join()
|
remover.join()
|
||||||
h.close()
|
try:
|
||||||
|
h.close()
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
if os.path.exists(fn):
|
if os.path.exists(fn):
|
||||||
os.unlink(fn)
|
os.unlink(fn)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue