New submission from Jason Fried <m...@jasonfried.info>:

If an AsyncMock uses a side_effect that is an Iterable, if called more than 
items exist its suppose to raise StopIteration according to the docs but PEP 
479 says that is impossible. 

My Suggestion is that we update the docs and the code to Raise a 
StopAsyncIteration since it will not be converted to a RuntimeError

----------
components: Library (Lib)
messages: 357008
nosy: fried, lisroach
priority: normal
severity: normal
status: open
title: AsyncMock says it raises StopIteration but that is Impossible
type: behavior
versions: Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38859>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to