def printErrors(self): """Overrides to print all errorClasses errors as well. """ _TextTestResult.printErrors(self) for cls in self.errorClasses.keys(): storage, label, isfail = self.errorClasses[cls] if isfail: self.printErrorList(label, storage) # Might get patched into a result with no config if hasattr(self, 'config'): self.config.plugins.report(self.stream)
def printErrors(self): """Overrides to print all errorClasses errors as well. """ _TextTestResult.printErrors(self) # TODO: Keep blocked tests count. for label, storage in self.blocked.items(): grouped = {ctx: tb for t, tb, ctx in storage} self.printErrorList("BLOCKED %s" % label, grouped.items()) for cls in self.errorClasses.keys(): storage, label, isfail = self.errorClasses[cls] if isfail: self.printErrorList(label, storage) # Might get patched into a result with no config if hasattr(self, "config"): self.config.plugins.report(self.stream)