Yury Selivanov added the comment:

>> but at the same time rejected by the 'async with' statement.

> Perhaps unittest.mock (or type) needs to be adjusted to allow mocking via 
> spec= without subclassing?

Maybe. You should try to find discussions around this topic on python mailing 
lists and this tracker. If you find nothing then feel free to open an issue and 
add Michael Foord to nosy list.

----------

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

Reply via email to