mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue 29274: Merge doc fixes from 3.5
This commit is contained in:
commit
4710935b11
3 changed files with 12 additions and 12 deletions
|
@ -35,7 +35,7 @@ class Test_TestLoader(unittest.TestCase):
|
|||
### Tests for TestLoader.loadTestsFromTestCase
|
||||
################################################################
|
||||
|
||||
# "Return a suite of all tests cases contained in the TestCase-derived
|
||||
# "Return a suite of all test cases contained in the TestCase-derived
|
||||
# class testCaseClass"
|
||||
def test_loadTestsFromTestCase(self):
|
||||
class Foo(unittest.TestCase):
|
||||
|
@ -48,7 +48,7 @@ class Test_TestLoader(unittest.TestCase):
|
|||
loader = unittest.TestLoader()
|
||||
self.assertEqual(loader.loadTestsFromTestCase(Foo), tests)
|
||||
|
||||
# "Return a suite of all tests cases contained in the TestCase-derived
|
||||
# "Return a suite of all test cases contained in the TestCase-derived
|
||||
# class testCaseClass"
|
||||
#
|
||||
# Make sure it does the right thing even if no tests were found
|
||||
|
@ -61,7 +61,7 @@ class Test_TestLoader(unittest.TestCase):
|
|||
loader = unittest.TestLoader()
|
||||
self.assertEqual(loader.loadTestsFromTestCase(Foo), empty_suite)
|
||||
|
||||
# "Return a suite of all tests cases contained in the TestCase-derived
|
||||
# "Return a suite of all test cases contained in the TestCase-derived
|
||||
# class testCaseClass"
|
||||
#
|
||||
# What happens if loadTestsFromTestCase() is given an object
|
||||
|
@ -82,7 +82,7 @@ class Test_TestLoader(unittest.TestCase):
|
|||
else:
|
||||
self.fail('Should raise TypeError')
|
||||
|
||||
# "Return a suite of all tests cases contained in the TestCase-derived
|
||||
# "Return a suite of all test cases contained in the TestCase-derived
|
||||
# class testCaseClass"
|
||||
#
|
||||
# Make sure loadTestsFromTestCase() picks up the default test method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue