Re: [Python-Dev] skip all TestCase methods if resource is not available

2010-04-01 Thread Florent Xicluna
2010/4/1 anatoly techtonik: > On Thu, Apr 1, 2010 at 8:02 PM, Florent Xicluna wrote: (...) >> >> Put it in unittest.TestCase.setUp() method. It should be enough. > > It fails with error instead if skip, as it should according to > http://docs.python.org/library/unittest.html#unittest.TestCase.setUp

Re: [Python-Dev] skip all TestCase methods if resource is not available

2010-04-01 Thread anatoly techtonik
On Thu, Apr 1, 2010 at 8:02 PM, Florent Xicluna wrote: > 2010/4/1 anatoly techtonik: >> Currently it is possible to mark individual test methods with: >>            test_support.requires('network') >> >> However, sometimes it is necessary to skip the whole TestCase if >> 'network' resource is not

Re: [Python-Dev] skip all TestCase methods if resource is not available

2010-04-01 Thread Florent Xicluna
2010/4/1 anatoly techtonik: > Currently it is possible to mark individual test methods with: >test_support.requires('network') > > However, sometimes it is necessary to skip the whole TestCase if > 'network' resource is not available counting the number of skipped > tests at the same ti

[Python-Dev] skip all TestCase methods if resource is not available

2010-04-01 Thread anatoly techtonik
Currently it is possible to mark individual test methods with: test_support.requires('network') However, sometimes it is necessary to skip the whole TestCase if 'network' resource is not available counting the number of skipped tests at the same time. Are there any standard means to do