Revision: de32383d48b6
Branch: default
Author: Pekka Klärck
Date: Mon Jan 7 13:02:19 2013
Log: Fixed libdoc after previous "fix".
Update issue 1323
Ooops, the earlier fix did remove the output when there are errors but also
when there wasn't. Fixed now.
http://code.google.com/p/robotframework/source/detail?r=de32383d48b6
Modified:
/src/robot/libdocpkg/output.py
=======================================
--- /src/robot/libdocpkg/output.py Mon Jan 7 12:34:02 2013
+++ /src/robot/libdocpkg/output.py Mon Jan 7 13:02:19 2013
@@ -32,5 +32,5 @@
def __exit__(self, *exc_info):
if self._output_file:
self._output_file.close()
- if exc_info:
+ if any(exc_info):
os.remove(self._output_path)