Message197615
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. |
|
Date |
User |
Action |
Args |
2013-09-13 17:26:01 | vajrasky | set | recipients:
+ vajrasky, ezio.melotti, michael.foord |
2013-09-13 17:26:01 | vajrasky | set | messageid: <1379093161.68.0.208390305674.issue18993@psf.upfronthosting.co.za> |
2013-09-13 17:26:01 | vajrasky | link | issue18993 messages |
2013-09-13 17:26:01 | vajrasky | create | |
|