Karthikeyan Singaravelan <[email protected]> added the comment:

Using patch as a function just returns a patch object. You need to call start 
method on the patch object to return a Mock.

----------
nosy: +lisroach, xtreak

_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39082>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to