Éric Araujo added the comment: >>> type(foo).prop = prop >>> foo.attach_mock(prop, 'prop') Are both of these lines needed? ---------- nosy: +eric.araujo _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue21255> _______________________________________