Did I find the right examples for you? yes no

All Samples(21)  |  Call(18)  |  Derive(0)  |  Import(3)
Cause this test to be skipped.

This raises self.skipException(reason). skipException is raised
to permit a skip to be triggered at any point (during setUp or the
testMethod itself). The run() method catches skipException and
translates that into a call to the result objects addSkip method.

:param reason: The reason why the test is being skipped. This must
    support being cast into a unicode string for reporting.

src/t/e/testtools-0.9.35/testtools/tests/test_testcase.py   testtools(Download)
            def test(this):
                this.addDetail("foo", self.get_content())
                self.skip('yo')
        self.assertDetailsProvided(Case("test"), "addSkip",
            ["foo", "reason"])
            def setUp(self):
                TestCase.setUp(self)
                self.skip("skipping this test")
            def test_that_passes(self):
                pass
            def test_that_raises_skipException(self):
                self.skip("skipping this test")
        result = Python27TestResult()
        test = SkippingTest("test_that_raises_skipException")
        test.run(result)

src/t/e/testtools-HEAD/testtools/tests/test_testcase.py   testtools(Download)
            def test(this):
                this.addDetail("foo", self.get_content())
                self.skip('yo')
        self.assertDetailsProvided(Case("test"), "addSkip",
            ["foo", "reason"])
            def setUp(self):
                TestCase.setUp(self)
                self.skip("skipping this test")
            def test_that_passes(self):
                pass
            def test_that_raises_skipException(self):
                self.skip("skipping this test")
        result = Python27TestResult()
        test = SkippingTest("test_that_raises_skipException")
        test.run(result)

src/t/e/testtools-0.9.35/testtools/tests/test_testresult.py   testtools(Download)
    def test_stopTestRun_shows_details(self):
        self.skip("Disabled per bug 1188420")
        def run_tests():
            self.result.startTestRun()
            make_erroring_test().run(self.result)
            codecs.lookup(encoding)
        except LookupError:
            self.skip("Encoding unsupported by implementation: %r" % encoding)
        f = codecs.open(os.path.join(self.dir, name + ".py"), "w", encoding)
        try:
            except (LookupError, UnicodeError):
                pass
        self.skip("Could not find a sample text for encoding: %r" % encoding)
 
    def _as_output(self, text):

src/t/e/testtools-HEAD/testtools/tests/test_testresult.py   testtools(Download)
    def test_stopTestRun_shows_details(self):
        self.skip("Disabled per bug 1188420")
        def run_tests():
            self.result.startTestRun()
            make_erroring_test().run(self.result)
            codecs.lookup(encoding)
        except LookupError:
            self.skip("Encoding unsupported by implementation: %r" % encoding)
        f = codecs.open(os.path.join(self.dir, name + ".py"), "w", encoding)
        try:
            except (LookupError, UnicodeError):
                pass
        self.skip("Could not find a sample text for encoding: %r" % encoding)
 
    def _as_output(self, text):

src/t/e/testtools-0.9.35/testtools/tests/test_compat.py   testtools(Download)
    def setUp(self):
        super(TestUnicodeOutputStream, self).setUp()
        if sys.platform == "cli":
            self.skip("IronPython shouldn't wrap streams to do encoding")
 
    def setUp(self):
        super(Python2CompatibilityTests, self).setUp()
        if sys.version[0] >= '3':
            self.skip("These tests are only applicable to python 2.")
 

src/t/e/testtools-HEAD/testtools/tests/test_compat.py   testtools(Download)
    def setUp(self):
        super(TestUnicodeOutputStream, self).setUp()
        if sys.platform == "cli":
            self.skip("IronPython shouldn't wrap streams to do encoding")
 
    def setUp(self):
        super(Python2CompatibilityTests, self).setUp()
        if sys.version[0] >= '3':
            self.skip("These tests are only applicable to python 2.")
 

src/t/e/testtools-0.9.35/testtools/tests/test_testsuite.py   testtools(Download)
    def setUp(self):
        super(TestFixtureSuite, self).setUp()
        if FunctionFixture is None:
            self.skip("Need fixtures")
 

src/t/e/testtools-HEAD/testtools/tests/test_testsuite.py   testtools(Download)
    def setUp(self):
        super(TestFixtureSuite, self).setUp()
        if FunctionFixture is None:
            self.skip("Need fixtures")