Commit cda466b5 authored by Michael Foord's avatar Michael Foord

Merged revisions 78132 via svnmerge from

svn+ssh://pythondev@svn.python.org/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
........
parent a25264cc
...@@ -2045,7 +2045,7 @@ class Test_TestResult(TestCase): ...@@ -2045,7 +2045,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__ +
...@@ -2053,7 +2053,7 @@ class Test_TestResult(TestCase): ...@@ -2053,7 +2053,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 '
...@@ -2064,7 +2064,7 @@ class Test_TestResult(TestCase): ...@@ -2064,7 +2064,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 '
......
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