mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Correction to issue 17052 fix
This commit is contained in:
parent
8fd396bd22
commit
f78f5b11f6
3 changed files with 3 additions and 3 deletions
|
|
@ -199,7 +199,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)])
|
||||
|
||||
|
|
|
|||
|
|
@ -221,7 +221,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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue