Skip to content

Commit d35e4eb

Browse files
committed
revert now unrelated fix
1 parent 1a4dfbb commit d35e4eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ def formatrepr(self) -> FixtureLookupErrorRepr:
807807
stack = [self.request._pyfuncitem.obj]
808808
stack.extend(map(lambda x: x.func, self.fixturestack))
809809
msg = self.msg
810-
if msg is not None and len(stack) > 1:
810+
if msg is not None:
811811
# The last fixture raise an error, let's present
812812
# it at the requesting side.
813813
stack = stack[:-1]

0 commit comments

Comments
 (0)