Kaydet (Commit) c36bf991 authored tarafından Michael Foord's avatar Michael Foord

Correction to issue 17052 fix

üst cb66ee7f
......@@ -159,7 +159,7 @@ class TestProgram(object):
def _do_discovery(self, argv, Loader=None):
if Loader is None:
Loader = self.testLoader
Loader = lambda: self.testLoader
# handle command line args for test discovery
self.progName = '%s discover' % self.progName
......
......@@ -236,7 +236,7 @@ class TestDiscovery(unittest.TestCase):
self.args.append((start_dir, pattern, top_level_dir))
return 'tests'
program.testLoader = Loader
program.testLoader = Loader()
program._do_discovery(['-v'])
self.assertEqual(Loader.args, [('.', 'test*.py', None)])
......
......@@ -202,7 +202,7 @@ Core and Builtins
Library
-------
- Issue #17502: unittest discovery should use self.testLoader.
- Issue #17052: unittest discovery should use self.testLoader.
- Issue #17141: random.vonmisesvariate() no more hangs for large kappas.
......
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