Did I find the right examples for you? yes no

All Samples(1479)  |  Call(1372)  |  Derive(28)  |  Import(79)
Raise this exception in a test to skip it.

Usually you can use TestCase.skipTest() or one of the skipping decorators
instead of raising this directly.

src/l/i/liveandletdie-HEAD/test_examples/unittest_example/tests.py   liveandletdie(Download)
        except Exception as e:
            # Skip test if not started.
            raise unittest.SkipTest(e.message)
 
        # Start browser.

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/logilab/common/testlib.py   modern-python-example(Download)
else:
    import unittest
    from unittest import SkipTest
 
try:
class InnerTestSkipped(SkipTest):
    """raised when a test is skipped"""
    pass
 
def parse_generative_args(params):

src/i/n/infi.storagemodel-0.2.10/src/infi/storagemodel/examples/tests.py   infi.storagemodel(Download)
            get_storage_model()
        except ImportError:
            raise unittest.SkipTest()
 
    def test_devlist_runs(self):

src/v/i/VisTrails-HEAD/vistrails/packages/tabledata/write/__init__.py   VisTrails(Download)
    def setUpClass(cls):
        from .write_excel import get_xlwt
        if get_xlwt() is None: # pragma: no cover
            raise unittest.SkipTest("xlwt not available")
 

src/v/i/VisTrails-HEAD/vistrails/packages/tabledata/read/read_excel.py   VisTrails(Download)
    def setUpClass(cls):
        if get_xlrd() is None: # pragma: no cover
            raise unittest.SkipTest("xlrd not available")
        import os
        cls._test_dir = os.path.join(

src/o/b/obspy-0.9.0/obspy/core/util/decorator.py   obspy(Download)
        except socket.timeout as e:
            if str(e) == "timed out":
                raise unittest.SkipTest(str(e))
        ###################################################
        except socket.error as e:
            if str(e) == "[Errno 110] Connection timed out":
                raise unittest.SkipTest(str(e))

src/o/b/obspy-HEAD/obspy/core/util/decorator.py   obspy(Download)
        except socket.timeout as e:
            if str(e) == "timed out":
                raise unittest.SkipTest(str(e))
        ###################################################
        except socket.error as e:
            if str(e) == "[Errno 110] Connection timed out":
                raise unittest.SkipTest(str(e))

src/i/v/ivoire-0.2/ivoire/standalone.py   ivoire(Download)
from __future__ import unicode_literals
from unittest import SkipTest, TestCase, TestResult
import sys
 
import ivoire
 
        if condition:
            raise SkipTest(reason)
 
 

src/i/v/Ivoire-HEAD/ivoire/standalone.py   Ivoire(Download)
from __future__ import unicode_literals
from unittest import SkipTest, TestCase, TestResult
import sys
 
import ivoire
 
        if condition:
            raise SkipTest(reason)
 
 

src/g/o/gocept.jslint-1.1/src/gocept/jslint/case.py   gocept.jslint(Download)
    def _run_jslint(self, filename):
        if not self.jshint_present:
            raise unittest.SkipTest(
                '%r not found on $PATH' % self.jshint_command)
        config = self._write_config_file()

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next