PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/unit_tests/test_issue270_fixtures.py

https://bitbucket.org/jpellerin/nose/
Python | 11 lines | 10 code | 1 blank | 0 comment | 2 complexity | f8a6ff83c0c3dcac154aae3f40e0ac64 MD5 | raw file
 1from nose.plugins.skip import SkipTest
 2from nose.plugins.multiprocess import MultiProcess
 3
 4def setup_module():
 5    try:
 6        import multiprocessing
 7        if 'active' in MultiProcess.status:
 8            raise SkipTest("Multiprocess plugin is active. Skipping tests of "
 9                           "plugin itself.")
10    except ImportError:
11        raise SkipTest("multiprocessing module not available")