Did I find the right examples for you? yes no

All Samples(63)  |  Call(37)  |  Derive(0)  |  Import(26)

        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/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/o/p/opentls-HEAD/tests/c/test_bio_sink.py   opentls(Download)
        return api.BIO_s_mem()
 
    test_tell = unittest.expectedFailure(BioRead.test_tell)
    test_seek = unittest.expectedFailure(BioRead.test_seek)
    test_eof = unittest.expectedFailure(BioWrite.test_eof)
        self.bio = api.BIO_new_mem_buf(self.data, -1)
 
    test_tell = unittest.expectedFailure(BioRead.test_tell)
    test_seek = unittest.expectedFailure(BioRead.test_seek)
 

src/o/p/opentls-HEAD/tests/io/test_method.py   opentls(Download)
        self.bio = io.wrap_io(fileobj)
 
    test_eof = unittest.expectedFailure(BioWrite.test_eof)
    test_puts = unittest.expectedFailure(BioWrite.test_puts)
 
        self.bio = io.wrap_io(fileobj)
 
    test_ctrl_pending = unittest.expectedFailure(BioRead.test_ctrl_pending)
    test_eof = unittest.expectedFailure(BioRead.test_eof)
    test_gets = unittest.expectedFailure(BioRead.test_gets)

src/b/a/bayeux-0.8/unittest_TAP.py   bayeux(Download)
    import unittest2 as unittest
except ImportError:
    from unittest import TestResult, TestCase, TestSuite, TextTestRunner, \
        TestLoader, FunctionTestCase, defaultTestLoader, SkipTest, \
        skip, skipIf, skipUnless, expectedFailure, TextTestResult, \

src/j/u/junitxml-0.7/junitxml/tests/test_junitxml.py   junitxml(Download)
        class Succeeds(unittest.TestCase):
            def test_me(self):
                pass
            try:
                test_me = unittest.expectedFailure(test_me)
        class ExpectedFail(unittest.TestCase):
            def test_me(self):
                self.fail("fail")
            try:
                test_me = unittest.expectedFailure(test_me)

src/s/u/supy-HEAD/tests/__compatibility__.py   supy(Download)
import unittest,sys
 
if hasattr(unittest,'skip') :
    from unittest import skip,skipIf,skipUnless,expectedFailure
else:

src/s/a/salt-testing-HEAD/salttesting/unit.py   salt-testing(Download)
        raise SystemExit('You need to install unittest2 to run the salt tests')
else:
    from unittest import (
        TestLoader,
        TextTestRunner as _TextTestRunner,

src/t/r/tract_querier-HEAD/tract_querier/tests/tests_query_rewrite.py   tract_querier(Download)
from .. import query_processor
 
from nose.tools import assert_equal, assert_not_equal
from unittest import expectedFailure
 

src/p/o/pourover-HEAD/buster/lib/django/contrib/gis/tests/geoapp/tests.py   pourover(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/p/y/pyamf-HEAD/pyamf/tests/util.py   pyamf(Download)
            return func
 
        return unittest.expectedFailure(func)
 
 

  1 | 2 | 3 | 4 | 5  Next