Did I find the right examples for you? yes no

All Samples(158)  |  Call(123)  |  Derive(0)  |  Import(35)
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/h/u/hunch-sample-app-HEAD/django/test/testcases.py   hunch-sample-app(Download)
            def skip_wrapper(*args, **kwargs):
                if condition():
                    raise ut2.SkipTest(reason)
                return test_func(*args, **kwargs)
            test_item = skip_wrapper

src/a/p/appscale-HEAD/AppServer/lib/django-1.4/django/contrib/admin/tests.py   appscale(Download)
import sys
 
from django.test import LiveServerTestCase
from django.utils.importlib import import_module
from django.utils.unittest import SkipTest
    def setUpClass(cls):
        if sys.version_info < (2, 6):
            raise SkipTest('Selenium Webdriver does not support Python < 2.6.')
        try:
            # Import and start the WebDriver class.
            cls.selenium = WebDriver()
        except Exception, e:
            raise SkipTest('Selenium webdriver "%s" not installed or not '
                           'operational: %s' % (cls.webdriver_class, str(e)))
        super(AdminSeleniumWebDriverTestCase, cls).setUpClass()

src/g/o/google-app-engine-HEAD/lib/django-1.4/django/contrib/admin/tests.py   google-app-engine(Download)
import sys
 
from django.test import LiveServerTestCase
from django.utils.importlib import import_module
from django.utils.unittest import SkipTest
    def setUpClass(cls):
        if sys.version_info < (2, 6):
            raise SkipTest('Selenium Webdriver does not support Python < 2.6.')
        try:
            # Import and start the WebDriver class.
            cls.selenium = WebDriver()
        except Exception, e:
            raise SkipTest('Selenium webdriver "%s" not installed or not '
                           'operational: %s' % (cls.webdriver_class, str(e)))
        super(AdminSeleniumWebDriverTestCase, cls).setUpClass()

src/h/u/hue-HEAD/desktop/core/ext-py/Django-1.4.5/django/contrib/admin/tests.py   hue(Download)
import sys
 
from django.test import LiveServerTestCase
from django.utils.importlib import import_module
from django.utils.unittest import SkipTest
    def setUpClass(cls):
        if sys.version_info < (2, 6):
            raise SkipTest('Selenium Webdriver does not support Python < 2.6.')
        try:
            # Import and start the WebDriver class.
            cls.selenium = WebDriver()
        except Exception, e:
            raise SkipTest('Selenium webdriver "%s" not installed or not '
                           'operational: %s' % (cls.webdriver_class, str(e)))
        super(AdminSeleniumWebDriverTestCase, cls).setUpClass()

src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/django/contrib/admin/tests.py   rolf(Download)
import os
 
from django.test import LiveServerTestCase
from django.utils.module_loading import import_by_path
from django.utils.unittest import SkipTest
    def setUpClass(cls):
        if not os.environ.get('DJANGO_SELENIUM_TESTS', False):
            raise SkipTest('Selenium tests not requested')
        try:
            cls.selenium = import_by_path(cls.webdriver_class)()
        except Exception as e:
            raise SkipTest('Selenium webdriver "%s" not installed or not '

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/django/contrib/admin/tests.py   antisocial(Download)
import os
 
from django.test import LiveServerTestCase
from django.utils.module_loading import import_by_path
from django.utils.unittest import SkipTest
    def setUpClass(cls):
        if not os.environ.get('DJANGO_SELENIUM_TESTS', False):
            raise SkipTest('Selenium tests not requested')
        try:
            cls.selenium = import_by_path(cls.webdriver_class)()
        except Exception as e:
            raise SkipTest('Selenium webdriver "%s" not installed or not '

src/g/o/googleappengine-python-HEAD/lib/django-1.4/django/contrib/admin/tests.py   googleappengine-python(Download)
import sys
 
from django.test import LiveServerTestCase
from django.utils.importlib import import_module
from django.utils.unittest import SkipTest
    def setUpClass(cls):
        if sys.version_info < (2, 6):
            raise SkipTest('Selenium Webdriver does not support Python < 2.6.')
        try:
            # Import and start the WebDriver class.
            cls.selenium = WebDriver()
        except Exception, e:
            raise SkipTest('Selenium webdriver "%s" not installed or not '
                           'operational: %s' % (cls.webdriver_class, str(e)))
        super(AdminSeleniumWebDriverTestCase, cls).setUpClass()

src/d/j/Django-1.6.4/django/contrib/admin/tests.py   Django(Download)
import os
 
from django.test import LiveServerTestCase
from django.utils.module_loading import import_by_path
from django.utils.unittest import SkipTest
    def setUpClass(cls):
        if not os.environ.get('DJANGO_SELENIUM_TESTS', False):
            raise SkipTest('Selenium tests not requested')
        try:
            cls.selenium = import_by_path(cls.webdriver_class)()
        except Exception as e:
            raise SkipTest('Selenium webdriver "%s" not installed or not '

src/u/p/UP-Manager-0.0.0/django/contrib/admin/tests.py   UP-Manager(Download)
import os
 
from django.test import LiveServerTestCase
from django.utils.module_loading import import_by_path
from django.utils.unittest import SkipTest
    def setUpClass(cls):
        if not os.environ.get('DJANGO_SELENIUM_TESTS', False):
            raise SkipTest('Selenium tests not requested')
        try:
            cls.selenium = import_by_path(cls.webdriver_class)()
        except Exception as e:
            raise SkipTest('Selenium webdriver "%s" not installed or not '

src/g/i/gitstack-HEAD/python/Lib/site-packages/django/contrib/admin/tests.py   gitstack(Download)
import sys
 
from django.test import LiveServerTestCase
from django.utils.importlib import import_module
from django.utils.unittest import SkipTest
    def setUpClass(cls):
        if sys.version_info < (2, 6):
            raise SkipTest('Selenium Webdriver does not support Python < 2.6.')
        try:
            # Import and start the WebDriver class.
            cls.selenium = WebDriver()
        except Exception, e:
            raise SkipTest('Selenium webdriver "%s" not installed or not '
                           'operational: %s' % (cls.webdriver_class, str(e)))
        super(AdminSeleniumWebDriverTestCase, cls).setUpClass()

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