Did I find the right examples for you? yes no

All Samples(254)  |  Call(99)  |  Derive(0)  |  Import(155)
Unconditionally skip a test.

        def skip(reason):
    """
    Unconditionally skip a test.
    """
    def decorator(test_item):
        if not isinstance(test_item, (type, types.ClassType)):
            @functools.wraps(test_item)
            def skip_wrapper(*args, **kwargs):
                raise SkipTest(reason)
            test_item = skip_wrapper

        test_item.__unittest_skip__ = True
        test_item.__unittest_skip_why__ = reason
        return test_item
    return decorator
        


src/f/l/flaky-0.2.0/test/test_example.py   flaky(Download)
# a live tutorial, showing the various features in action.
 
from unittest import TestCase, expectedFailure, skip
from box.test.flaky import flaky
 

src/n/b/NBT-1.4.1/tests/examplestests.py   NBT(Download)
import unittest
try:
    from unittest import skip as _skip
except ImportError:
    # Python 2.6 has an older unittest API. The backported package is available from pypi.

src/n/b/NBT-HEAD/tests/examplestests.py   NBT(Download)
import unittest
try:
    from unittest import skip as _skip
except ImportError:
    # Python 2.6 has an older unittest API. The backported package is available from pypi.

src/a/p/apgl-0.8.0/apgl/__init__.py   apgl(Download)
    if version >= 2.7:
        import unittest
        return unittest.skip(reason)
    else:
        import unittest2

src/a/p/APGL-HEAD/apgl/__init__.py   APGL(Download)
    if version >= 2.7:
        import unittest
        return unittest.skip(reason)
    else:
        import unittest2

src/c/l/cloudroast-HEAD/cloudroast/objectstorage/fixtures.py   cloudroast(Download)
 
        return unittest.skip(
            'swift running version {0}, requires version{1}: {2}'.format(
                swift_version, extra_message, required_version))
 
 
        if features == objectstorage_api_config.NO_FEATURES:
            return unittest.skip('skipping all features')
 
        features = features.split()
        if missing_reqs:
            return unittest.skip(
                'requires features: {0}'.format(', '.join(required_features)))
 
        return lambda func: func

src/b/l/blz-0.6.2/blz/py2help.py   blz(Download)
if sys.version_info[:2] >= (2, 7):
    from ctypes import c_ssize_t
    from unittest import skip, skipIf
else:
    import ctypes

src/b/l/blaze-0.1/blaze/py3help.py   blaze(Download)
if sys.version_info[:2] >= (2, 7):
    from ctypes import c_ssize_t
    from unittest import skip, skipIf
else:
    import ctypes

src/b/l/blaze-HEAD/blaze/py2help.py   blaze(Download)
if sys.version_info[:2] >= (2, 7):
    from ctypes import c_ssize_t
    from unittest import skip, skipIf
else:
    import ctypes

src/a/m/amcat-HEAD/amcat/tools/amcates.py   amcat(Download)
 
from amcat.tools import amcattest
from unittest import skipUnless, skip
 
class TestAmcatES(amcattest.AmCATTestCase):

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