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 vajrasky
Recipients ezio.melotti, michael.foord, vajrasky
Date 2013-09-13.17:26:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379093161.68.0.208390305674.issue18993@psf.upfronthosting.co.za>
In-reply-to
Content
Okay, I found the difference.

The second test case is to test the case on which we delete the attribute of the mock instance before being referenced by any variable. The we make sure the attribute is gone for good.

The first test case is to test the case on which we delete the attribute of the mock instance after being referenced by any variable (or maybe just needed to be used by __getattr__), then we make sure the attribute is resetted to the original value, not deleted.

I oversight this because I never thought that people could rely on this behaviour.
History
Date User Action Args
2013-09-13 17:26:01vajraskysetrecipients: + vajrasky, ezio.melotti, michael.foord
2013-09-13 17:26:01vajraskysetmessageid: <1379093161.68.0.208390305674.issue18993@psf.upfronthosting.co.za>
2013-09-13 17:26:01vajraskylinkissue18993 messages
2013-09-13 17:26:01vajraskycreate