Commit 75b54e27 authored by Michael Foord's avatar Michael Foord

Merge

parents f643b8a5 4410dd06
......@@ -222,7 +222,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
......
......@@ -269,7 +269,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)])
......
......@@ -175,7 +175,7 @@ Core and Builtins
Library
-------
- Issue #17502: unittest discovery should use self.testLoader.
- Issue #17052: unittest discovery should use self.testLoader.
- Issue #4591: Uid and gid values larger than 2**31 are supported now.
......
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