excluding unit test code

Steven Haryanto steven at haryan.to
Tue Apr 3 04:25:53 EDT 2001


At 4/3/2001 03:05 AM, Steve Purcell wrote:
>Steven Haryanto wrote:
> > Since an XP-faithful coder can write lots of test suites,
> > is there a simple way to exclude these code in a module
> > from the production code?
>
>Yes -- put the test code in a separate module to the tested code!
>
>But consider shipping tests with production code anyway. You never know when
>they'll help you track down a problem.

Yes, that's obvious. Do you have any suggestion if we adopt
the style of writing test in an inner class?

Thanks,
Steve





More information about the Python-list mailing list