jingham added a comment. If the problem is that the self of the test object doesn't always have a debug_info setting, why not just always initialize it to None? Seems weird to have a general property like this that we don't initialize. http://reviews.llvm.org/D14673