Did I find the right examples for you? yes no

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)
Calls "func" and fails if it doesn't raise the right exception
(any exception by default). Also returns the exception in question.

src/c/y/Cython-0.20.1/Cython/Compiler/Tests/TestBuffer.py   Cython(Download)
    def not_parseable(self, expected_error, s):
        e = self.should_fail(lambda: self.fragment(s),  Errors.CompileError)
        self.assertEqual(expected_error, e.message_only)
 
    def test_basic(self):

src/c/y/cython-HEAD/Cython/Compiler/Tests/TestBuffer.py   cython(Download)
    def not_parseable(self, expected_error, s):
        e = self.should_fail(lambda: self.fragment(s),  Errors.CompileError)
        self.assertEqual(expected_error, e.message_only)
 
    def test_basic(self):

src/e/s/essig-HEAD/vm/cython/Cython/Compiler/Tests/TestBuffer.py   essig(Download)
    def not_parseable(self, expected_error, s):
        e = self.should_fail(lambda: self.fragment(s),  Errors.CompileError)
        self.assertEqual(expected_error, e.message_only)
 
    def test_basic(self):

src/p/l/plexnet-HEAD/third_party/python/Cython/Compiler/Tests/TestBuffer.py   plexnet(Download)
    def not_parseable(self, expected_error, s):
        e = self.should_fail(lambda: self.fragment(s),  Errors.CompileError)
        self.assertEqual(expected_error, e.message_only)
 
    def test_basic(self):

src/c/y/CythonCTypesBackend-HEAD/Cython/Compiler/Tests/TestBuffer.py   CythonCTypesBackend(Download)
    def not_parseable(self, expected_error, s):
        e = self.should_fail(lambda: self.fragment(s),  Errors.CompileError)
        self.assertEqual(expected_error, e.message_only)
 
    def test_basic(self):

src/p/y/pylibs-HEAD/Cython/Compiler/Tests/TestBuffer.py   pylibs(Download)
    def not_parseable(self, expected_error, s):
        e = self.should_fail(lambda: self.fragment(s),  Errors.CompileError)
        self.assertEqual(expected_error, e.message_only)
 
    def test_basic(self):

src/c/y/Cython-0.20.1/Cython/Compiler/Tests/TestMemView.py   Cython(Download)
    def not_parseable(self, expected_error, s):
        e = self.should_fail(lambda: self.fragment(s),  Errors.CompileError)
        self.assertEqual(expected_error, e.message_only)
 
    def test_default_1dim(self):

src/c/y/cython-HEAD/Cython/Compiler/Tests/TestMemView.py   cython(Download)
    def not_parseable(self, expected_error, s):
        e = self.should_fail(lambda: self.fragment(s),  Errors.CompileError)
        self.assertEqual(expected_error, e.message_only)
 
    def test_default_1dim(self):

src/c/y/CythonCTypesBackend-HEAD/Cython/Compiler/Tests/TestMemView.py   CythonCTypesBackend(Download)
    def not_parseable(self, expected_error, s):
        e = self.should_fail(lambda: self.fragment(s),  Errors.CompileError)
        self.assertEqual(expected_error, e.message_only)
 
    def test_default_1dim(self):