Kaydet (Commit) 47d9738b authored tarafından Benjamin Peterson's avatar Benjamin Peterson

rename TestCase.skip() to skipTest() because it causes annoying problems with trial #5571

üst c3141a6e
......@@ -576,7 +576,7 @@ Test cases
instance.
.. method:: skip(reason)
.. method:: skipTest(reason)
Calling this during the a test method or :meth:`setUp` skips the current
test. See :ref:`unittest-skipping` for more information.
......
......@@ -2294,7 +2294,7 @@ class Test_TestSkipping(TestCase):
def test_skipping(self):
class Foo(unittest.TestCase):
def test_skip_me(self):
self.skip("skip")
self.skipTest("skip")
events = []
result = LoggingResult(events)
test = Foo("test_skip_me")
......@@ -2305,7 +2305,7 @@ class Test_TestSkipping(TestCase):
# Try letting setUp skip the test now.
class Foo(unittest.TestCase):
def setUp(self):
self.skip("testing")
self.skipTest("testing")
def test_nothing(self): pass
events = []
result = LoggingResult(events)
......
......@@ -411,7 +411,7 @@ class TestCase(object):
getattr(self, self._testMethodName)()
self.tearDown()
def skip(self, reason):
def skipTest(self, reason):
"""Skip this test."""
raise SkipTest(reason)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment