Re: [Pyunit-interest] comments on PyUnit
Brought to you by:
purcell
From: Chuck E. <ec...@mi...> - 2001-04-11 17:47:08
|
At 03:58 PM 4/11/2001 +0200, Steve Purcell wrote: > def suite(): > try: > import some_tests > return unittest.defaultTestLoader.loadTestsFromModule(some_tests) > except ImportError: > return TestSuite() # empty suite Perhaps: return SkippedTestSuite(reason) would better. Then you could display the reason (and count the number of tests skipped). My point being that SkippedTestSuite becomes part of unittest. I agree with Guido that many systems will grow optional components. Webware is one example. -Chuck |