Shadowing builtins (was Re: a pyrex-inspired for-i-from-1-to-n ...)
A. Lloyd Flanagan
alloydflanagan at attbi.com
Thu Apr 3 17:50:42 EST 2003
Peter Hansen <peter at engcorp.com> wrote in message news:<3E8B4094.F61515B3 at engcorp.com>...
> Jp Calderone wrote:
> >
> forth my perspective on this. I'm coming to *count* on this as one of
> the most effective solutions for certain kinds of testing. (Specifically,
> by creating a mock file system by intercepting open() calls in my own
> method, to allow generating of various file system errors and situations
> and to increase performance of unit tests by avoiding the real file
> system.)
>
> -Peter
Hey, that's a great idea, thanks!
More information about the Python-list
mailing list