[New-bugs-announce] [issue17052] unittest discovery should use self.testLoader

Chris Jerdonek report at bugs.python.org
Sun Jan 27 11:11:51 CET 2013


New submission from Chris Jerdonek:

The _do_discovery() method of unittest.TestProgram:

    def _do_discovery(self, argv, Loader=loader.TestLoader):

(from http://hg.python.org/cpython/file/2cf89e2e6247/Lib/unittest/main.py#l222 )

should be using self.testLoader instead of loader.TestLoader.  It's not consistent for some parts of TestProgram to use loader.TestLoader and other parts to use the testLoader passed in via the constructor.

----------
components: Library (Lib)
messages: 180755
nosy: chris.jerdonek, ezio.melotti, michael.foord
priority: normal
severity: normal
stage: test needed
status: open
title: unittest discovery should use self.testLoader
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17052>
_______________________________________


More information about the New-bugs-announce mailing list