From 16f4771d2442b0438e7b245662f9f66e66790d72 Mon Sep 17 00:00:00 2001 From: Gustavo Niemeyer Date: Sun, 20 Jun 2010 12:42:47 -0300 Subject: Implemented Expect helper, which allows creating a new expect() "function" with an explicitly provided Mocker instance. This helps in cases where the expression can't result in a Mock instance (e.g. expect(iter(mock))) (#196388). --- NEWS | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 5af979e..6560f17 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,13 @@ certain cases because, even though that's *not* documented, Python tries to use __length_hint__ in some cases. +- Implemented Expect helper, which allows creating a new expect() + "function" with an explicitly provided Mocker instance. This + helps in cases where the expression can't result in a Mock + instance (e.g. expect(iter(mock))) (#196388). + + "function" with an explicitly provided Mocker instance. + - __nonzero__ should necessarily return a boolean value, so transform Mock results into True (#380024). -- cgit v1.2.1