mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Fix for unittest tests, to be merged to py3k
This commit is contained in:
parent
67dfc77dfd
commit
1c3abf475e
1 changed files with 3 additions and 3 deletions
|
@ -2033,7 +2033,7 @@ class Test_TestResult(TestCase):
|
||||||
self.assertIsInstance(formatted_exc, str)
|
self.assertIsInstance(formatted_exc, str)
|
||||||
|
|
||||||
def testGetDescriptionWithoutDocstring(self):
|
def testGetDescriptionWithoutDocstring(self):
|
||||||
result = unittest.TextTestResult(None, True, None)
|
result = unittest.TextTestResult(None, True, 1)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
result.getDescription(self),
|
result.getDescription(self),
|
||||||
'testGetDescriptionWithoutDocstring (' + __name__ +
|
'testGetDescriptionWithoutDocstring (' + __name__ +
|
||||||
|
@ -2041,7 +2041,7 @@ class Test_TestResult(TestCase):
|
||||||
|
|
||||||
def testGetDescriptionWithOneLineDocstring(self):
|
def testGetDescriptionWithOneLineDocstring(self):
|
||||||
"""Tests getDescription() for a method with a docstring."""
|
"""Tests getDescription() for a method with a docstring."""
|
||||||
result = unittest.TextTestResult(None, True, None)
|
result = unittest.TextTestResult(None, True, 1)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
result.getDescription(self),
|
result.getDescription(self),
|
||||||
('testGetDescriptionWithOneLineDocstring '
|
('testGetDescriptionWithOneLineDocstring '
|
||||||
|
@ -2052,7 +2052,7 @@ class Test_TestResult(TestCase):
|
||||||
"""Tests getDescription() for a method with a longer docstring.
|
"""Tests getDescription() for a method with a longer docstring.
|
||||||
The second line of the docstring.
|
The second line of the docstring.
|
||||||
"""
|
"""
|
||||||
result = unittest.TextTestResult(None, True, None)
|
result = unittest.TextTestResult(None, True, 1)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
result.getDescription(self),
|
result.getDescription(self),
|
||||||
('testGetDescriptionWithMultiLineDocstring '
|
('testGetDescriptionWithMultiLineDocstring '
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue