Interaction btw unittest.assertRaises and __getattr__. Bug?

Chris Rebert clp2 at rebertia.com
Wed Oct 27 04:57:11 CEST 2010


On Tue, Oct 26, 2010 at 7:51 PM, Benjamin Peterson <benjamin at python.org> wrote:
> 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.

or rather, "chance to catch it."

Seems there were 2 typos.

Cheers,
Chris



More information about the Python-list mailing list