Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 333 by stashluk: Output class forgets to remove _xmllogger from the LOGGER._loggers list.
http://code.google.com/p/robotframework/issues/detail?id=333 Python 2.5 RF 2.1 When an instance of the Output class is close()d, the _LoggerProxy for the _xmllogger remains in the LOGGER._loggers list. When the run() method of the next runnable suite is called, the LOGGER attempts to write to a defunct output-DATE-TIME.xml file, resulting in an error. The Output class should probably remove the _xmllogger on close(). It looks like Output will need to provide a handle for removing the _LoggerProxy from the list. Traceback (most recent call last): File "./rfconsole.pyw", line 41, in run self.parent.run() File "./rfconsole.pyw", line 213, in run suite.run(observer) File "c:\python25\lib\site-packages\robot\running\model.py", line 68, in run output.start_suite(self) File "c:\jobs\homedialysis\sourcecode\pluto\tools\testconsole\output.py", line 18, in start_suite Output.start_suite(self, suite) File "C:\Python25\Lib\site-packages\robot\output\output.py", line 61, in start_suite LOGGER.start_suite(suite) File "C:\Python25\Lib\site-packages\robot\output\logger.py", line 109, in start_suite logger.start_suite(suite) File "c:\python25\lib\site-packages\robot\output\xmllogger.py", line 107, in start_suite self._start_suite(suite) File "c:\python25\lib\site-packages\robot\output\xmllogger.py", line 121, in _start_suite self._writer.start('suite', attrs) File "c:\python25\lib\site-packages\robot\utils\pyxmlwriter.py", line 33, in start self._writer.startElement(name, attrs) File "c:\python25\lib\xml\sax\saxutils.py", line 130, in startElement self._write('<' + name) File "c:\python25\lib\xml\sax\saxutils.py", line 99, in _write self._out.write(text) ValueError: I/O operation on closed file -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings
