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 and3rson
Recipients and3rson, cjw296, mariocj89, michael.foord
Date 2018-12-03.18:38:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1543862300.85.0.788709270274.issue35357@psf.upfronthosting.co.za>
In-reply-to
Content
I see 2 most applicable ways to do it:

- Hide .parent and .name by mangling
- Define them within the mock class definition scope, but not within the class itself.

As long as those are accessed only from within the mock class, I think second method would be better as it would completely remove them from mock's attributes.
History
Date User Action Args
2018-12-03 18:38:20and3rsonsetrecipients: + and3rson, cjw296, michael.foord, mariocj89
2018-12-03 18:38:20and3rsonsetmessageid: <1543862300.85.0.788709270274.issue35357@psf.upfronthosting.co.za>
2018-12-03 18:38:20and3rsonlinkissue35357 messages
2018-12-03 18:38:20and3rsoncreate