summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unittest.py
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2009-07-13 16:32:47 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2009-07-13 16:32:47 (GMT)
commitbee87b4c1cfa89f0ca17e72874a17ea0ad126489 (patch)
treeda30abd0afd1f0bca2ca0326534b4996c1f36a94 /Lib/test/test_unittest.py
parentf4a96e07d8ae7ba868c22c93dec0e2bef13d3383 (diff)
downloadcpython-bee87b4c1cfa89f0ca17e72874a17ea0ad126489.zip
cpython-bee87b4c1cfa89f0ca17e72874a17ea0ad126489.tar.gz
cpython-bee87b4c1cfa89f0ca17e72874a17ea0ad126489.tar.bz2
Move initialising unittest.TestProgram.testRunner into runTests. Issue 6418.
Diffstat (limited to 'Lib/test/test_unittest.py')
-rw-r--r--Lib/test/test_unittest.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/Lib/test/test_unittest.py b/Lib/test/test_unittest.py
index c8fdc15..5626542 100644
--- a/Lib/test/test_unittest.py
+++ b/Lib/test/test_unittest.py
@@ -6,6 +6,7 @@ Still need testing:
TestCase.{assert,fail}* methods (some are tested implicitly)
"""
+import sys
from test import test_support
import unittest
from unittest import TestCase
@@ -2285,15 +2286,6 @@ class Test_Assertions(TestCase):
self.failIfAlmostEqual, 0, .1+.1j, places=0)
-class Test_TestProgram(TestCase):
-
- def testTestProgram_testRunnerArgument(self):
- program = object.__new__(unittest.TestProgram)
- program.parseArgs = lambda _: None
- program.runTests = lambda: None
- program.__init__(testRunner=None)
- self.assertEqual(program.testRunner, unittest.TextTestRunner)
-
######################################################################
## Main
@@ -2302,7 +2294,7 @@ class Test_TestProgram(TestCase):
def test_main():
test_support.run_unittest(Test_TestCase, Test_TestLoader,
Test_TestSuite, Test_TestResult, Test_FunctionTestCase,
- Test_Assertions, Test_TestProgram)
+ Test_Assertions)
if __name__ == "__main__":
test_main()