On Sat, Dec 19, 2009 at 08:32:08PM +0100, Jonathan Schleifer wrote: > Darrin Chandler <[email protected]> wrote: > > > You're doing testing wrong and the wrongness has nothing to do with > > python. ;-) > > Erm, since when is it wrong to change code for testing, to make sure it > even works under strange circumstances? oO
When you can write your code to remain testable. If you've changed code, then you're only testing test code instead of production code. If you change it back for production, did you change it back correctly? Better to call the same code from both production and testing. Yes, I have used your approach. I only use that approach when I must. -- Darrin Chandler | Phoenix BSD User Group | MetaBUG [email protected] | http://phxbug.org/ | http://metabug.org/ http://www.stilyagin.com/ | Daemons in the Desert | Global BUG Federation

