Michael Foord added the comment:
This was committed without NEWS entry or documentation update.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17502
___
Roundup Robot added the comment:
New changeset 4d8e9c5ba651 by Andrew Svetlov in branch '3.3':
Add NEWS entry for #17502: Process DEFAULT values in mock side_effect that
returns iterator.
http://hg.python.org/cpython/rev/4d8e9c5ba651
New changeset f82fb8813407 by Andrew Svetlov in branch
Andrew Svetlov added the comment:
NEWS updated, thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17502
___
___
Python-bugs-list mailing
Yuriy Senko added the comment:
Patch ported from
http://code.google.com/p/mock/issues/attachmentText?id=190aid=19name=mock.patchtoken=6pDNkNBcNLDftg-PsUE8roPb6T4%3A1363712167613
--
keywords: +patch
nosy: +Chaka_bum, asvetlov
Added file:
Andrew Svetlov added the comment:
Fixed. Thanks
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17502
___
Changes by Radu Voicilas radu.voici...@gmail.com:
--
nosy: +raduv
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17502
___
___
Python-bugs-list
Michael Foord added the comment:
There's a straightforward patch here, it just needs applying:
http://code.google.com/p/mock/issues/attachmentText?id=190aid=19name=mock.patchtoken=6pDNkNBcNLDftg-PsUE8roPb6T4%3A1363712167613
--
___
Python
New submission from Michael Foord:
An iterator set as a mock side_effect should be able to include mock.DEFAULT to
use the standard return value.
def test_side_effect_iterator_default(self):
mock = Mock(return_value=2)
mock.side_effect = [1, DEFAULT]
result =