[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-04-08 Thread Michael Foord
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 ___

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-04-08 Thread Roundup Robot
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

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-04-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: NEWS updated, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17502 ___ ___ Python-bugs-list mailing

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-04-07 Thread Yuriy Senko
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:

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-04-07 Thread Andrew Svetlov
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 ___

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-03-27 Thread Radu Voicilas
Changes by Radu Voicilas radu.voici...@gmail.com: -- nosy: +raduv ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17502 ___ ___ Python-bugs-list

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-03-23 Thread Michael Foord
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

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-03-20 Thread Michael Foord
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 =