TestMiCliSupport (among other TestMi*) fails on Linux with
IOError: [Errno 2] No such file or directory: 'child.log'
Differential D8843
Ignore IOError from missing child.log. Authored by chaoren on Apr 6 2015, 10:06 AM.
Details TestMiCliSupport (among other TestMi*) fails on Linux with IOError: [Errno 2] No such file or directory: 'child.log'
Diff Detail Event Timeline
Comment Actions lgtm
Comment Actions Looks good. Or change to check if file exists first as one of the comments suggested.. | ||||||||||||||||||
I'd prefer to not use exceptions where it's not needed. Can we change it to the following?
import os.path if os.path.exists(self.mylog): print open(self.mylog, "r").read()