Scott David Daniels wrote: > OK I carried the code I offered earlier in this whole thread (tweaked in > reaction to some comments) over to comp.lang.python, gathered some > feedback, and put up a recipe on the cookbook. After a week or so for > more comment, I'll be happy to submit a patch to include the broken_test > decorator function in unittest. > > Here is where the recipe is, for those who want to comment further: > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/466288
Looks pretty handy to me - I've certainly experienced the "I know what the problem is and exactly how to provoke it, I just don't have time to fix it right now" problem myself. I added a minor comment about testing for whether there were user supplied exceptions at definition time, rather than run time. Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com