mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
Move TestRunner initialisation into unittest.TestProgram.runTests. Fixes issue 6418.
This commit is contained in:
parent
78c06bd9b7
commit
91dcd93beb
2 changed files with 2 additions and 11 deletions
|
@ -3324,15 +3324,6 @@ class Test_TestProgram(TestCase):
|
|||
self.assertEqual(runner.test, test)
|
||||
self.assertEqual(program.verbosity, 2)
|
||||
|
||||
|
||||
def testTestProgram_testRunnerArgument(self):
|
||||
program = object.__new__(TestProgram)
|
||||
program.parseArgs = lambda _: None
|
||||
program.runTests = lambda: None
|
||||
program.__init__(testRunner=None)
|
||||
self.assertEqual(program.testRunner, unittest.TextTestRunner)
|
||||
|
||||
|
||||
class FooBar(unittest.TestCase):
|
||||
def testPass(self):
|
||||
assert True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue