Author michael.foord
Recipients Julian, brett.cannon, chris.jerdonek, daniel.urban, eric.araujo, ezio.melotti, michael.foord, pablomouzo, r.david.murray
Date 2013-03-27.12:25:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364387127.14.0.621020485388.issue11664@psf.upfronthosting.co.za>
In-reply-to
Content
Yes this is still relevant and needs doing (and is easy).

The implementation should be similar to:

def patch(self, *args, **kwargs):
    # lazy import
    from unittest.mock import patch
    p = patch(*args, **kwargs)
    result = p.start()
    self.addCleanup(p.stop)
    return result

Plus tests and documentation.
History
Date User Action Args
2013-03-27 12:25:27michael.foordsetrecipients: + michael.foord, brett.cannon, ezio.melotti, eric.araujo, r.david.murray, pablomouzo, daniel.urban, chris.jerdonek, Julian
2013-03-27 12:25:27michael.foordsetmessageid: <1364387127.14.0.621020485388.issue11664@psf.upfronthosting.co.za>
2013-03-27 12:25:27michael.foordlinkissue11664 messages
2013-03-27 12:25:26michael.foordcreate