summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-02-10 15:53:19 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-02-10 15:53:19 (GMT)
commit0b581e58f96a3ef66858d6efd762dbae849d766c (patch)
tree056ae6fd98aecb3b9682ecd7b17014eff7c0c264
parent0e31b992fae89ef2543155c8ae6bf3affca6a813 (diff)
downloadcpython-0b581e58f96a3ef66858d6efd762dbae849d766c.zip
cpython-0b581e58f96a3ef66858d6efd762dbae849d766c.tar.gz
cpython-0b581e58f96a3ef66858d6efd762dbae849d766c.tar.bz2
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 ........
-rw-r--r--Lib/test/test_unittest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_unittest.py b/Lib/test/test_unittest.py
index 0727931..8627312 100644
--- a/Lib/test/test_unittest.py
+++ b/Lib/test/test_unittest.py
@@ -2045,7 +2045,7 @@ class Test_TestResult(TestCase):
self.assertIsInstance(formatted_exc, str)
def testGetDescriptionWithoutDocstring(self):
- result = unittest.TextTestResult(None, True, None)
+ result = unittest.TextTestResult(None, True, 1)
self.assertEqual(
result.getDescription(self),
'testGetDescriptionWithoutDocstring (' + __name__ +
@@ -2053,7 +2053,7 @@ class Test_TestResult(TestCase):
def testGetDescriptionWithOneLineDocstring(self):
"""Tests getDescription() for a method with a docstring."""
- result = unittest.TextTestResult(None, True, None)
+ result = unittest.TextTestResult(None, True, 1)
self.assertEqual(
result.getDescription(self),
('testGetDescriptionWithOneLineDocstring '
@@ -2064,7 +2064,7 @@ class Test_TestResult(TestCase):
"""Tests getDescription() for a method with a longer docstring.
The second line of the docstring.
"""
- result = unittest.TextTestResult(None, True, None)
+ result = unittest.TextTestResult(None, True, 1)
self.assertEqual(
result.getDescription(self),
('testGetDescriptionWithMultiLineDocstring '