summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorGustavo Niemeyer <gustavo@niemeyer.net>2010-06-20 12:42:47 -0300
committerGustavo Niemeyer <gustavo@niemeyer.net>2010-06-20 12:42:47 -0300
commit16f4771d2442b0438e7b245662f9f66e66790d72 (patch)
tree1aaf5bbac7d171090455937c0a05a42ce044e414 /NEWS
parent64f6cb84d6512b7c0a216699a24df73c73a75418 (diff)
downloadmocker-16f4771d2442b0438e7b245662f9f66e66790d72.tar.gz
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).
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS7
1 files changed, 7 insertions, 0 deletions
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).