Elffuss BraidHub

kikocis/auto-code-rover public

main · 569 BRawPermalink
1diff --git a/src/_pytest/_code/code.py b/src/_pytest/_code/code.py
2--- a/src/_pytest/_code/code.py
3+++ b/src/_pytest/_code/code.py
4@@ -534,13 +534,6 @@ def getrepr(
5 )
6 return fmt.repr_excinfo(self)
7
8- def __str__(self):
9- if self._excinfo is None:
10- return repr(self)
11- entry = self.traceback[-1]
12- loc = ReprFileLocation(entry.path, entry.lineno + 1, self.exconly())
13- return str(loc)
14-
15 def match(self, regexp):
16 """
17 Check whether the regular expression 'regexp' is found in the string