projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d9c1b1
)
Ignore exceptions on test handler closing.
author
Vinay Sajip
<vinay_sajip@yahoo.co.uk>
Sat, 19 May 2012 15:50:07 +0000
(16:50 +0100)
committer
Vinay Sajip
<vinay_sajip@yahoo.co.uk>
Sat, 19 May 2012 15:50:07 +0000
(16:50 +0100)
Lib/test/test_logging.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_logging.py
b/Lib/test/test_logging.py
index a06deff9d6b5e4c3d28708af361eee8409e93482..08e2dca34b7f74980a379bbda95c221f537572d9 100644
(file)
--- a/
Lib/test/test_logging.py
+++ b/
Lib/test/test_logging.py
@@
-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)