Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b581e5

Browse files
author
Michael Foord
committed
Merged revisions 78132 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r78132 | michael.foord | 2010-02-10 15:50:58 +0000 (Wed, 10 Feb 2010) | 1 line Fix for unittest tests, to be merged to py3k ........
1 parent 0e31b99 commit 0b581e5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/test/test_unittest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2045,15 +2045,15 @@ def test_1(self):
20452045
self.assertIsInstance(formatted_exc, str)
20462046

20472047
def testGetDescriptionWithoutDocstring(self):
2048-
result = unittest.TextTestResult(None, True, None)
2048+
result = unittest.TextTestResult(None, True, 1)
20492049
self.assertEqual(
20502050
result.getDescription(self),
20512051
'testGetDescriptionWithoutDocstring (' + __name__ +
20522052
'.Test_TestResult)')
20532053

20542054
def testGetDescriptionWithOneLineDocstring(self):
20552055
"""Tests getDescription() for a method with a docstring."""
2056-
result = unittest.TextTestResult(None, True, None)
2056+
result = unittest.TextTestResult(None, True, 1)
20572057
self.assertEqual(
20582058
result.getDescription(self),
20592059
('testGetDescriptionWithOneLineDocstring '
@@ -2064,7 +2064,7 @@ def testGetDescriptionWithMultiLineDocstring(self):
20642064
"""Tests getDescription() for a method with a longer docstring.
20652065
The second line of the docstring.
20662066
"""
2067-
result = unittest.TextTestResult(None, True, None)
2067+
result = unittest.TextTestResult(None, True, 1)
20682068
self.assertEqual(
20692069
result.getDescription(self),
20702070
('testGetDescriptionWithMultiLineDocstring '

0 commit comments

Comments
 (0)