We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38e0e08 commit 6799a47Copy full SHA for 6799a47
_pytest/python.py
@@ -1835,8 +1835,13 @@ def toterminal(self, tw):
1835
#tw.line("FixtureLookupError: %s" %(self.argname), red=True)
1836
for tbline in self.tblines:
1837
tw.line(tbline.rstrip())
1838
- for line in self.errorstring.split("\n"):
1839
- tw.line(" " + line.strip(), red=True)
+ lines = self.errorstring.split("\n")
+ for line in lines:
1840
+ if line == lines[0]:
1841
+ prefix = 'E '
1842
+ else:
1843
+ prefix = ' '
1844
+ tw.line(prefix + line.strip(), red=True)
1845
tw.line()
1846
tw.line("%s:%d" % (self.filename, self.firstlineno+1))
1847
0 commit comments