excluding unit test code

Steve Purcell stephen_purcell at yahoo.com
Mon Apr 2 16:05:16 EDT 2001


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.

-Steve

-- 
Steve Purcell, Pythangelist
Get testing at http://pyunit.sourceforge.net/
Any opinions expressed herein are my own and not necessarily those of Yahoo




More information about the Python-list mailing list