[issue21255] Attaching a PropertyMock records calls

2020-02-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue21255] Attaching a PropertyMock records calls

2014-04-22 Thread Michael Foord
Michael Foord added the comment: Not sure, but I guess it would be easy to find out. It will need some digging into to find out where the actual bug is. It shouldn't be hard to find though. -- ___ Python tracker _

[issue21255] Attaching a PropertyMock records calls

2014-04-16 Thread Éric Araujo
É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 ___ _

[issue21255] Attaching a PropertyMock records calls

2014-04-16 Thread Michael Foord
New submission from Michael Foord: What steps will reproduce the problem? >>> foo = Mock(name='foo') >>> prop = PropertyMock(name='prop') >>> type(foo).prop = prop >>> foo.attach_mock(prop, 'prop') >>> foo.mock_calls [call.prop()] Expected: >>> foo.mock_calls []