diff options
author | Gustavo Niemeyer <gustavo@niemeyer.net> | 2010-06-20 12:42:47 -0300 |
---|---|---|
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | 2010-06-20 12:42:47 -0300 |
commit | 16f4771d2442b0438e7b245662f9f66e66790d72 (patch) | |
tree | 1aaf5bbac7d171090455937c0a05a42ce044e414 /NEWS | |
parent | 64f6cb84d6512b7c0a216699a24df73c73a75418 (diff) | |
download | mocker-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-- | NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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). |