From 0816cc4d2e80285355acc422401ea4a473f3837a Mon Sep 17 00:00:00 2001 From: Pavel Minaev Date: Fri, 5 Oct 2018 08:03:43 -0700 Subject: [PATCH] Log realized expectations. --- pytests/helpers/timeline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pytests/helpers/timeline.py b/pytests/helpers/timeline.py index b7b08b1f..814a08ca 100644 --- a/pytests/helpers/timeline.py +++ b/pytests/helpers/timeline.py @@ -68,7 +68,9 @@ class Timeline(object): 'Use >> to sequence an expectation against an occurrence to establish a lower bound.' ) print('Waiting for %r' % expectation) - return self.wait_until(lambda: expectation in self) + occ = self.wait_until(lambda: expectation in self) + print('Expectation %r realized by %r' % (expectation, occ)) + return occ def _record(self, occurrence): t = timestamp()