예제 #1
0
파일: code.py 프로젝트: tpapaioa/pytest
 def toterminal(self, tw: TerminalWriter) -> None:
     # Filename and lineno output for each entry, using an output format
     # that most editors understand.
     msg = self.message
     i = msg.find("\n")
     if i != -1:
         msg = msg[:i]
     tw.write(self.path, bold=True, red=True)
     tw.line(f":{self.lineno}: {msg}")
 def toterminal(self, tw: TerminalWriter) -> None:
     # filename and lineno output for each entry,
     # using an output format that most editors understand
     msg = self.message
     i = msg.find("\n")
     if i != -1:
         msg = msg[:i]
     tw.write(self.path, bold=True, red=True)
     tw.line(":{}: {}".format(self.lineno, msg))
예제 #3
0
파일: code.py 프로젝트: tpapaioa/pytest
 def toterminal(self, tw: TerminalWriter) -> None:
     tw.write("".join(self.lines))