[issue20030] unittest.TestLoader.discover return value incorrectly documented.

Arnaut Billings report at bugs.python.org
Fri Dec 20 10:02:25 CET 2013


New submission from Arnaut Billings:

Here: http://docs.python.org/3/library/unittest.html#unittest.TestLoader.discover

it states that "Find and return all test modules ..."

This implies that in order to get a test suite, one has to iterate over the return value of unittest.TestLoader.discover and call loadTestsFromModule for each module.

But, the type of the result of unittest.TestLoader.discover returns: <class 'unittest.suite.TestSuite'>

----------
assignee: docs at python
components: Documentation
messages: 206670
nosy: arnaut-billings, docs at python
priority: normal
severity: normal
status: open
title: unittest.TestLoader.discover return value incorrectly documented.
versions: Python 3.3

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


More information about the Python-bugs-list mailing list