Did I find the right examples for you? yes no

All Samples(81)  |  Call(29)  |  Derive(0)  |  Import(52)

        def expectedFailure(func):
    @functools.wraps(func)
    def wrapper(*args, **kwargs):
        try:
            func(*args, **kwargs)
        except Exception:
            raise _ExpectedFailure(sys.exc_info())
        raise _UnexpectedSuccess
    return wrapper
        


src/d/j/Django-1.6.4/django/contrib/gis/tests/geoapp/tests.py   Django(Download)
    # http://trac.osgeo.org/postgis/ticket/2035
    if postgis_bug_version():
        test_left_right_lookups = unittest.expectedFailure(test_left_right_lookups)
 
    def test_equals_lookups(self):

src/u/p/UP-Manager-0.0.0/django/contrib/gis/tests/geoapp/tests.py   UP-Manager(Download)
    # http://trac.osgeo.org/postgis/ticket/2035
    if postgis_bug_version():
        test_left_right_lookups = unittest.expectedFailure(test_left_right_lookups)
 
    def test_equals_lookups(self):

src/d/j/Django-1.6.4/tests/serializers_regress/tests.py   Django(Download)
from django.utils.encoding import force_text
from django.utils.functional import curry
from django.utils.unittest import expectedFailure, skipUnless
 
from .models import (BinaryData, BooleanData, CharData, DateData, DateTimeData, EmailData,
if connection.vendor == 'mysql' and six.PY3:
    # Existing MySQL DB-API drivers fail on binary data.
    serializerTest = expectedFailure(serializerTest)
 
 

src/u/p/UP-Manager-0.0.0/tests/serializers_regress/tests.py   UP-Manager(Download)
from django.utils.encoding import force_text
from django.utils.functional import curry
from django.utils.unittest import expectedFailure, skipUnless
 
from .models import (BinaryData, BooleanData, CharData, DateData, DateTimeData, EmailData,
if connection.vendor == 'mysql' and six.PY3:
    # Existing MySQL DB-API drivers fail on binary data.
    serializerTest = expectedFailure(serializerTest)
 
 

src/d/j/Django-1.6.4/tests/model_fields/tests.py   Django(Download)
    if connection.vendor == 'mysql' and six.PY3:
        # Existing MySQL DB-API drivers fail on binary data.
        test_set_and_retrieve = unittest.expectedFailure(test_set_and_retrieve)
 
    def test_max_length(self):

src/u/p/UP-Manager-0.0.0/tests/model_fields/tests.py   UP-Manager(Download)
    if connection.vendor == 'mysql' and six.PY3:
        # Existing MySQL DB-API drivers fail on binary data.
        test_set_and_retrieve = unittest.expectedFailure(test_set_and_retrieve)
 
    def test_max_length(self):

src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/django/contrib/gis/tests/geoapp/tests.py   rolf(Download)
    # http://trac.osgeo.org/postgis/ticket/2035
    if postgis_bug_version():
        test_left_right_lookups = unittest.expectedFailure(test_left_right_lookups)
 
    def test_equals_lookups(self):

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/django/contrib/gis/tests/geoapp/tests.py   antisocial(Download)
    # http://trac.osgeo.org/postgis/ticket/2035
    if postgis_bug_version():
        test_left_right_lookups = unittest.expectedFailure(test_left_right_lookups)
 
    def test_equals_lookups(self):

src/a/p/appscale-HEAD/AppServer/lib/django-1.5/django/contrib/gis/tests/geoapp/tests.py   appscale(Download)
    # TODO: Ensure fixed in 2.0.2, else modify upper bound for version here.
    if (2, 0, 0) <= connection.ops.spatial_version <= (2, 0, 1):
        test_left_right_lookups = unittest.expectedFailure(test_left_right_lookups)
 
    def test_equals_lookups(self):

src/t/r/triaquae-HEAD/TriAquae/models/django/contrib/gis/tests/geoapp/tests.py   triaquae(Download)
    # TODO: Ensure fixed in 2.0.2, else modify upper bound for version here.
    if (2, 0, 0) <= connection.ops.spatial_version <= (2, 0, 1):
        test_left_right_lookups = unittest.expectedFailure(test_left_right_lookups)
 
    def test_equals_lookups(self):

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