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 | ncoghlan at gmail.com | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4