Comment 1 for bug 1244490

Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

This is a bug in autopilot. The root problem is that we allow people to pass in a callable method to assertThat, like so:

self.assertThat(lambda: self.get_thing(1, 2, 3), Eventually(Equals('something')))

The Eventually matcher breaks the behavior defined in testtools - it calls the matchee when it should instead pass it to the underlying matcher.

I think we need to figure out how to fix this. Off the top of my head, there's no easy solution. Need to think about this some more. Suggestions welcome;