Exemplo n.º 1
0
 def report_failure(self, out, test: "doctest.DocTest",
                    example: "doctest.Example", got: str) -> None:
     failure = doctest.DocTestFailure(test, example, got)
     if self.continue_on_failure:
         out.append(failure)
     else:
         raise failure
Exemplo n.º 2
0
 def report_failure(self, out, test, example, got):
     failure = doctest.DocTestFailure(test, example, got)
     if self.continue_on_failure:
         out.append(failure)
     else:
         raise failure