Karthikeyan Singaravelan <tir.kar...@gmail.com> 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 <rep...@bugs.python.org>
<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