[issue14636] Mock could check for exceptions in side effect list

2012-04-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset c310233b1d64 by Michael Foord in branch 'default': Closes issue 14636. mock objects raise exceptions from an iterable side_effect http://hg.python.org/cpython/rev/c310233b1d64 -- nosy: +python-dev resolution: -> fixed stage: needs patch ->

[issue14636] Mock could check for exceptions in side effect list

2012-04-20 Thread Michael Foord
Michael Foord added the comment: Seems like a good change. -- assignee: -> michael.foord ___ Python tracker ___ ___ Python-bugs-list

[issue14636] Mock could check for exceptions in side effect list

2012-04-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14636] Mock could check for exceptions in side effect list

2012-04-20 Thread R. David Murray
New submission from R. David Murray : I just spent an hour figuring out why my test was failing because I tried to do this: mymock.side_effect = (AuthenticationError, None) expecting the first call to raise an auth error and the second time it was called to get a normal return. Since ther