Can't you get rid of the `if bugnumber:` and just check for `bugnumber is None` inside `expectedFailure()`? http://reviews.llvm.org/D8595 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/