Andrew Dunai <[email protected]> added the comment:
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. ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue35357> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
