summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-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 '