title: How do I skip a whole Python 'unittest' module at run time?
body: <p>I would like my Python <em>unittest</em> module to tell the test runner to skip it entirety under some situations (such as being unable to import a module or locate a critical resource).</p>
  <p>I can use <code>@unittest.skipIf(...)</code> to skip a <em>unittest.TestCase</em> class, but how do I skip the <strong>entire module</strong>? Applying skips to every class is not sufficient because the class definitions themselves could cause exceptions if a module fails to import.</p>