Interaction btw unittest.assertRaises and __getattr__. Bug?

Benjamin Peterson benjamin at python.org
Tue Oct 26 22:51:37 EDT 2010


Inyeol <inyeol.lee <at> gmail.com> writes:

> 
> or am I missing something obvious?

The attribute access is evaluated before the call to assertRaises, so unittest
never has a cache to cache it.






More information about the Python-list mailing list