This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ilya.Kulakov
Recipients Ilya.Kulakov, giampaolo.rodola, ncoghlan, thehesiod, veky, yselivanov
Date 2017-08-19.08:15:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1503130523.05.0.902788955883.issue29302@psf.upfronthosting.co.za>
In-reply-to
Content
I'm not sure about type() to get a class object and calling __aenter__, __aexit__ through it: that makes it hard to mock these classes as Mock's spec= relies on __class__ and type() seem to ignore it (learned it a hard way.

Yury, I could take a second look and try to change this into a patch if that's OK.
History
Date User Action Args
2017-08-19 08:15:23Ilya.Kulakovsetrecipients: + Ilya.Kulakov, ncoghlan, giampaolo.rodola, yselivanov, thehesiod, veky
2017-08-19 08:15:23Ilya.Kulakovsetmessageid: <1503130523.05.0.902788955883.issue29302@psf.upfronthosting.co.za>
2017-08-19 08:15:22Ilya.Kulakovlinkissue29302 messages
2017-08-19 08:15:22Ilya.Kulakovcreate