warnings during blackbox test cleanup cause flush errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
affects bzr
status confirmed
importance medium
If the test directory gets removed as part of the test the test runner
will attempt to print a warning. This fails:
------------
Text attachment: traceback
------------
Traceback (most recent call last):
File "/usr/lib/
153, in _runCleanups
function(
File "/home/
1471, in _finishLogFile
bzrlib.
File "/home/
pop_log_file
new_
ValueError: I/O operation on closed file
------------
The following patch makes the error go away and gets me a proper
warning:
--- bzrlib/trace.py 2010-06-28 02:41:22 +0000
+++ bzrlib/trace.py 2010-07-26 00:59:43 +0000
@@ -380,8 +380,6 @@
# file will likely already be closed underneath.
new_
bzr_
- if new_trace_file is not None:
- new_trace_