[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-04-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: NEWS updated, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[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 'defau

[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 ___ ___ Python-b

[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 ___ __

[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=190&aid=19&name=mock.patch&token=6pDNkNBcNLDftg-PsUE8roPb6T4%3A1363712167613 -- keywords: +patch nosy: +Chaka_bum, asvetlov Added file: http://bugs.python.org/file29713/issue_

[issue17502] unittest.mock: side_effect iterators ignore DEFAULT

2013-03-27 Thread Radu Voicilas
Changes by Radu Voicilas : -- nosy: +raduv ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[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=190&aid=19&name=mock.patch&token=6pDNkNBcNLDftg-PsUE8roPb6T4%3A1363712167613 -- ___ Python t

[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 = mock()